createPdf method

Future<Uint8List?> createPdf({
  1. @Deprecated("Use pdfConfiguration instead") IOSWKPDFConfiguration? iosWKPdfConfiguration,
  2. PDFConfiguration? pdfConfiguration,
})

Generates PDF data from the web view’s contents asynchronously. Returns null if a problem occurred.

pdfConfiguration represents the object that specifies the portion of the web view to capture as PDF data.

NOTE for iOS: available only on iOS 14.0+.

NOTE for MacOS: available only on MacOS 11.0+.

Officially Supported Platforms/Implementations:

Implementation

Future<Uint8List?> createPdf(
        {@Deprecated("Use pdfConfiguration instead")
        // ignore: deprecated_member_use_from_same_package
        IOSWKPDFConfiguration? iosWKPdfConfiguration,
        PDFConfiguration? pdfConfiguration}) =>
    platform.createPdf(
        iosWKPdfConfiguration: iosWKPdfConfiguration,
        pdfConfiguration: pdfConfiguration);