<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreGraphics",
  "identifier" : "/documentation/CoreGraphics/CGPDFPage",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Core Graphics"
    ],
    "preciseIdentifier" : "c:@T@CGPDFPageRef"
  },
  "title" : "CGPDFPage"
}
-->

# CGPDFPage

A type that represents a page in a PDF document.

```
class CGPDFPage
```

## Topics

### Retaining and Releasing a PDF Page

[`CGPDFPageRetain`](/documentation/CoreGraphics/CGPDFPageRetain)

Increments the retain count of a PDF page.

[`CGPDFPageRelease`](/documentation/CoreGraphics/CGPDFPageRelease)

Decrements the retain count of a PDF page.

### Getting Page Information

[`getBoxRect(_:)`](/documentation/CoreGraphics/CGPDFPage/getBoxRect(_:))

Returns the rectangle that represents a type of box for a content region or page dimensions of a PDF page.

[`dictionary`](/documentation/CoreGraphics/CGPDFPage/dictionary)

Returns the dictionary of a PDF page.

[`document`](/documentation/CoreGraphics/CGPDFPage/document)

Returns the document for a page.

[`pageNumber`](/documentation/CoreGraphics/CGPDFPage/pageNumber)

Returns the page number of the specified PDF page.

[`rotationAngle`](/documentation/CoreGraphics/CGPDFPage/rotationAngle)

Returns the rotation angle of a PDF page, in degrees.

[`getDrawingTransform(_:rect:rotate:preserveAspectRatio:)`](/documentation/CoreGraphics/CGPDFPage/getDrawingTransform(_:rect:rotate:preserveAspectRatio:))

Returns the affine transform that maps a box to a given rectangle on a PDF page.

### Working with Core Foundation Types

[`typeID`](/documentation/CoreGraphics/CGPDFPage/typeID)

Returns the CFType ID for PDF page objects.

### Constants

[`CGPDFBox`](/documentation/CoreGraphics/CGPDFBox)

Box types for a PDF page.

## See Also

  [Quartz 2D Programming Guide](https://developer.apple.com/library/archive/documentation/GraphicsImaging/Conceptual/drawingwithquartz2d/Introduction/Introduction.html#//apple_ref/doc/uid/TP30001066)



---

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)