CaptureBoxControllerPdf extension
Methods
-
getPdf({PdfPageMode pageMode = PdfPageMode.thumbs, bool compress = false, PdfVersion pdfVersion = PdfVersion.pdf_1_5, PdfPageFormat pageFormat = PdfPageFormat.undefined, PageOrientation? pageOrientation, String? title, String? author, String? creator, String? subject, String? keywords, String? producer})
→ Future<Uint8List?>
-
This method outputs a nullable Uint8List representing the Widget wrapped by
CaptureBox in the form of a PDF mime type.
-
printPdf({required String fileName, PdfPageMode pageMode = PdfPageMode.thumbs, bool compress = false, PdfVersion pdfVersion = PdfVersion.pdf_1_5, PdfPageFormat pageFormat = PdfPageFormat.undefined, PageOrientation? pageOrientation, String? title, String? author, String? creator, String? subject, String? keywords, String? producer})
→ Future<void>
-
This method takes the binary data obtained from a widget rendering task and renders
it into a printing layout.
-
savePdf({required String fileName, SaveMode saveMode = SaveMode.filePicker, String filePickerTitle = "", PdfPageMode pageMode = PdfPageMode.thumbs, bool compress = false, PdfVersion pdfVersion = PdfVersion.pdf_1_5, PdfPageFormat pageFormat = PdfPageFormat.undefined, PageOrientation? pageOrientation, String? title, String? author, String? creator, String? subject, String? keywords, String? producer})
→ Future<void>
-
This method saves into a PDF file the binary data obtained from a widget rendering
task, based on the directive passed to
saveMode
.
-
tryPrintPdf({required String fileName, PdfPageMode pageMode = PdfPageMode.thumbs, bool compress = false, PdfVersion pdfVersion = PdfVersion.pdf_1_5, PdfPageFormat pageFormat = PdfPageFormat.undefined, PageOrientation? pageOrientation, String? title, String? author, String? creator, String? subject, String? keywords, String? producer, void onError()?})
→ Future<void>
-
This method takes the binary data obtained from a widget rendering task and renders
it into a printing layout.
-
trySavePdf({required String fileName, SaveMode saveMode = SaveMode.filePicker, String filePickerTitle = "", PdfPageMode pageMode = PdfPageMode.thumbs, bool compress = false, PdfVersion pdfVersion = PdfVersion.pdf_1_5, PdfPageFormat pageFormat = PdfPageFormat.undefined, PageOrientation? pageOrientation, String? title, String? author, String? creator, String? subject, String? keywords, String? producer, void onError()?})
→ Future<void>
-
This method saves into a PDF file the binary data obtained from a widget rendering
task, based on the directive passed to
saveMode
.