WKPDFConfiguration
The configuration data to use when generating a PDF representation of a web view’s contents.
Declaration
@MainActor class WKPDFConfigurationOverview
Create a WKPDFConfiguration object when you want to generate a PDF version of your web view’s content. Use this object to specify the portion of the web view to capture. To generate the PDF content, pass the configuration object to the createPDF(configuration:completionHandler:) method of WKWebView, which returns the PDF data for you to use.