---
title: "CGPDFObjectGetType(_:)"
framework: coregraphics
role: symbol
role_heading: Function
path: "coregraphics/cgpdfobjectgettype(_:)"
---

# CGPDFObjectGetType(_:)

Returns the PDF type identifier of an object.

## Declaration

```swift
func CGPDFObjectGetType(_ object: CGPDFObjectRef) -> CGPDFObjectType
```

## Parameters

- `object`: A PDF object. If the value if not a PDF object, the behavior is unspecified.

## Return Value

Return Value Returns the type of the object parameter. See Abstract Types for PDF Document Content.

## See Also

### Getting Object Types and Values

- [CGPDFObjectGetValue(_:_:_:)](coregraphics/cgpdfobjectgetvalue(_:_:_:).md)
