<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.3.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreGraphics",
  "identifier" : "/documentation/CoreGraphics/CGPDFObjectGetType(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Graphics"
    ],
    "preciseIdentifier" : "c:@F@CGPDFObjectGetType"
  },
  "title" : "CGPDFObjectGetType(_:)"
}
-->

# CGPDFObjectGetType(_:)

Returns the PDF type identifier of an object.

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

## Parameters

`object`

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

## Return Value

Returns the type of the `object` parameter. See [`Abstract Types for PDF Document Content`](/documentation/CoreGraphics/CGPDFDocument#Abstract-Types-for-PDF-Document-Content).

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)