<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: -",
    "macOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/WebPage/ExportedContentConfiguration/pdf(region:allowTransparentBackground:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "s:6WebKit0A4PageC28ExportedContentConfigurationV3pdf6region26allowTransparentBackgroundA2E6RegionV_SbtFZ"
  },
  "title" : "pdf(region:allowTransparentBackground:)"
}
-->

# pdf(region:allowTransparentBackground:)

A configuration of a webpage for a representation as PDF data.

```
static func pdf(region: WebPage.ExportedContentConfiguration.Region = .contents, allowTransparentBackground: Bool = false) -> WebPage.ExportedContentConfiguration
```

## Parameters

`region`

The region of the page used to generate the PDF.

`allowTransparentBackground`

Indicates whether the PDF may have a transparent background.

## Return Value

The PDF configuration of this page that will be used when producing its representation.

---

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)