exportToPdfBytes static method

Uint8List exportToPdfBytes({
  1. required List<ScanResult> results,
  2. String title = 'ScannerPro Document Export',
  3. String? watermarkText,
  4. String? password,
  5. bool isEncrypted = false,
  6. bool digitalSignature = false,
  7. bool enableCompression = true,
})

Exports a list of scan results to PDF raw byte buffer.

Implementation

static Uint8List exportToPdfBytes({
  required List<ScanResult> results,
  String title = 'ScannerPro Document Export',
  String? watermarkText,
  String? password,
  bool isEncrypted = false,
  bool digitalSignature = false,
  bool enableCompression = true,
}) {
  return PdfExporter.exportResultsToPdf(
    results: results,
    title: title,
    watermarkText: watermarkText,
    password: password,
    isEncrypted: isEncrypted,
    digitalSignature: digitalSignature,
    enableCompression: enableCompression,
  );
}