<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.4.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreGraphics",
  "identifier" : "/documentation/CoreGraphics/kCGPDFContextTrimBox",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "Core Graphics"
    ],
    "preciseIdentifier" : "c:@kCGPDFContextTrimBox"
  },
  "title" : "kCGPDFContextTrimBox"
}
-->

# kCGPDFContextTrimBox

The trim box for the document or for a given page.

```
let kCGPDFContextTrimBox: CFString
```

## Discussion

This key is optional. If present, the value of this key must be a <doc://com.apple.documentation/documentation/CoreFoundation/CFData> object that contains a <doc://com.apple.documentation/documentation/CoreFoundation/CGRect> (stored by value, not by reference).

---

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)