One Logo Pool Ball
WebKit · IOS API REFERENCE

WebPage.ExportedContentConfiguration

struct · iOS 26.0+ · SDK 27.1

nonisolated struct ExportedContentConfiguration

A specialized configuration of a specific exportable type that can have specific properties unique to the content type.

Members (2)

static · iOS 26.0+

pdf

TypeScript
static pdf(region?: WebPage_ExportedContentConfiguration_Region, allowTransparentBackground?: boolean): Promise<WebPage_ExportedContentConfiguration>
Swift declaration
static func pdf(region: WebPage.ExportedContentConfiguration.Region = .contents, allowTransparentBackground: Bool = false) -> WebPage.ExportedContentConfiguration

A configuration of a webpage for a representation as PDF data. - Parameters: - region: The region of the page used to generate the PDF. - allowTransparentBackground: Indicates whether the PDF may have a transparent background. - Returns: The PDF configuration of this page that will be used when producing its representation.

static · iOS 26.0+

image

TypeScript
static image(region?: WebPage_ExportedContentConfiguration_Region, allowTransparentBackground?: boolean, snapshotWidth?: (number) | null, afterScreenUpdates?: boolean): Promise<WebPage_ExportedContentConfiguration>
Swift declaration
static func image(region: WebPage.ExportedContentConfiguration.Region = .contents, allowTransparentBackground: Bool = false, snapshotWidth: CGFloat? = nil, afterScreenUpdates: Bool = true) -> WebPage.ExportedContentConfiguration

A configuration of a webpage for a representation as image data. - Parameters: - region: The region of the page used to generate the image. - allowTransparentBackground: Indicates whether the image may have a transparent background. - snapshotWidth: The width of the captured image, in points. Use this property to scale the generated image to the specified width. The webpage maintains the aspect ratio of the captured content, but scales it to match the width you specify. The default value of this parameter is `nil`, which returns an image whose size matches the original size of the captured region. - afterScreenUpdates: Indicates whether to take the snapshot after incorporating any pending screen updates. - Returns: The image configuration of this page that will be used when producing its representation.

Skipped declarations

No declarations were skipped in this snapshot.

All WebKit types →