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

# CGPDFDocumentGetArtBox

Returns the art box of a page in a PDF document.

```
extern CGRect CGPDFDocumentGetArtBox(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

A rectangle that represents the art box for the specified page, expressed in default PDF user space units (points).

## Discussion

The replacement function for this one is [`getBoxRect(_:)`](/documentation/CoreGraphics/CGPDFPage/getBoxRect(_:)), which gets the rectangle associated with a type of box (art, media, crop, bleed trim) that represents a content region or page dimensions of a PDF page. For more information see [`CGPDFPage`](/documentation/CoreGraphics/CGPDFPage).

The art box defines the extent of the page’s meaningful content (including potential white space) as intended by the document creator. The default value is the page’s crop box.

---

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)