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

# CGPDFDocumentGetRotationAngle

Returns the rotation angle of a page in a PDF document.

```
extern int CGPDFDocumentGetRotationAngle(CGPDFDocumentRef document, int page);
```

## Parameters

`document`

The PDF document to examine.

`page`

An integer that specifies the number of the page to examine.

## Return Value

The rotation angle of the page, expressed in degrees. If the specified page does not exist, returns `0`.

## Discussion

The replacement function for this one is [`rotationAngle`](/documentation/CoreGraphics/CGPDFPage/rotationAngle). For more information see [`CGPDFPage`](/documentation/CoreGraphics/CGPDFPage).

---

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)