Variable ScanbotPdfGeneratorConst

ScanbotPdfGenerator: {
    generateFromDocument(params): Promise<string>;
    generateFromImages(params): Promise<string>;
}

Entry point for all PDF generation features.

Type declaration

  • generateFromDocument:function
    • Creates a PDF from the provided images with the specified configuration.

      Parameters

      • params: {
            documentUuid: string;
            ocrConfiguration?: OcrConfiguration;
            pdfConfiguration: PdfConfiguration;
        }
        • documentUuid: string

          The Uuid of the document to be used for creating the PDF.

        • Optional ocrConfiguration?: OcrConfiguration

          The configuration for OCR processing.

        • pdfConfiguration: PdfConfiguration

          The configuration for the generated PDF.

      Returns Promise<string>

      • The file uri pointing to the generated PDF file.
  • generateFromImages:function
    • Creates a PDF from the provided images with the specified configuration.

      Parameters

      Returns Promise<string>

      • The file uri pointing to the generated PDF file.