pdf(configuration:)
Generates PDF data from the web view’s contents asynchronously.
Declaration
@MainActor @preconcurrency func pdf(configuration: WKPDFConfiguration = .init()) async throws -> DataParameters
- configuration:
The object that specifies the portion of the web view to capture as PDF data.
Return Value
A data object that contains the PDF data to use for rendering the contents of the web view.