Class ScanbotPdfGenerator
-
- All Implemented Interfaces:
-
io.scanbot.sdk.process.PdfGenerator
public final class ScanbotPdfGenerator implements PdfGenerator
Provides methods for PDF generation
-
-
Constructor Summary
Constructors Constructor Description ScanbotPdfGenerator(Context context, FileIOProcessor fileIOProcessor, OcrPdfGenerator ocrGenerator, DocumentStoreStrategy documentStoreStrategy, BlobManager blobManager, SimpleComposer simpleComposer, OcrSettings ocrSettings, SapManager sapManager)
-
Method Summary
Modifier and Type Method Description FilegenerateFromUris(Array<Uri> imageFileUris, Boolean sourceFilesEncrypted, PdfConfiguration pdfConfig)Generate PDF from given images uris BooleangenerateFromUris(Array<Uri> imageFileUris, File outputFile, Boolean sourceFilesEncrypted, PdfConfiguration pdfConfig)Generate PDF from given images uris FilegenerateFromPages(Array<Page> pages, PdfConfiguration pdfConfig)Generate PDF from given list of Page objects BooleangenerateFromPages(Array<Page> pages, File outputFile, PdfConfiguration pdfConfig)Generate PDF from given array of Page objects BooleangenerateFromDocument(Document sourceDocument, PdfConfiguration pdfConfig)Generate PDF from given Document BooleangenerateFromDocument(Document sourceDocument, File outputFile, PdfConfiguration pdfConfig)Generate PDF from given Document FilegenerateWithOcrFromUris(List<Uri> imageFileUris, Boolean sourceFilesEncrypted, PdfConfiguration pdfConfig, OcrEngine.OcrConfig ocrConfig)Performs OCR and creates sandwiched OCR PDF file (from given image file URIs) with provided languages. FilegenerateWithOcrFromUris(List<Uri> imageFileUris, File outputFile, Boolean sourceFilesEncrypted, PdfConfiguration pdfConfig, OcrEngine.OcrConfig ocrConfig)Performs OCR and creates sandwiched OCR PDF file (from given image file URIs) with provided languages. FilegenerateWithOcrFromPages(List<Page> pages, PdfConfiguration pdfConfig, OcrEngine.OcrConfig ocrConfig)Performs OCR and creates sandwiched OCR PDF file (from given Page objects. BooleangenerateWithOcrFromPages(List<Page> pages, File outputFile, PdfConfiguration pdfConfig, OcrEngine.OcrConfig ocrConfig)Performs OCR and creates sandwiched OCR PDF file (from given Page objects. BooleangenerateWithOcrFromDocument(Document document, PdfConfiguration pdfConfig, OcrEngine.OcrConfig ocrConfig)Performs OCR and creates sandwiched OCR PDF file (from given Document. BooleangenerateWithOcrFromDocument(Document document, File outputFile, PdfConfiguration pdfConfig, OcrEngine.OcrConfig ocrConfig)Performs OCR and creates sandwiched OCR PDF file (from given Document. FilegenerateWithOcrPagesFromUris(List<Uri> imageFileUris, Boolean sourceFilesEncrypted, PdfConfiguration pdfConfig, List<Page> sourceOcrPages)Creates sandwiched OCR PDF file from given image file URIs and provided source list of io.scanbot.sdk.ocr.model.Page OCR data. FilegenerateWithOcrPagesFromUris(List<Uri> imageFileUris, File outputFile, Boolean sourceFilesEncrypted, PdfConfiguration pdfConfig, List<Page> sourceOcrPages)Creates sandwiched OCR PDF file from given image file URIs and provided source list of io.scanbot.sdk.ocr.model.Page OCR data. FilegenerateWithOcrPagesFromPages(List<Page> pages, PdfConfiguration pdfConfig, List<Page> sourceOcrPages)Creates sandwiched OCR PDF file from given Page objects and provided source list of io.scanbot.sdk.ocr.model.Page OCR data. BooleangenerateWithOcrPagesFromPages(List<Page> pages, File outputFile, PdfConfiguration pdfConfig, List<Page> sourceOcrPages)Creates sandwiched OCR PDF file from given Page objects and provided source list of io.scanbot.sdk.ocr.model.Page OCR data. BooleangenerateWithOcrPagesFromDocument(Document document, PdfConfiguration pdfConfig, List<Page> sourceOcrPages)Creates sandwiched OCR PDF file from given Document and provided source list of io.scanbot.sdk.ocr.model.Page OCR data. BooleangenerateWithOcrPagesFromDocument(Document document, File outputFile, PdfConfiguration pdfConfig, List<Page> sourceOcrPages)Creates sandwiched OCR PDF file from given Document and provided source list of io.scanbot.sdk.ocr.model.Page OCR data. -
-
Constructor Detail
-
ScanbotPdfGenerator
ScanbotPdfGenerator(Context context, FileIOProcessor fileIOProcessor, OcrPdfGenerator ocrGenerator, DocumentStoreStrategy documentStoreStrategy, BlobManager blobManager, SimpleComposer simpleComposer, OcrSettings ocrSettings, SapManager sapManager)
-
-
Method Detail
-
generateFromUris
File generateFromUris(Array<Uri> imageFileUris, Boolean sourceFilesEncrypted, PdfConfiguration pdfConfig)
Generate PDF from given images uris
- Parameters:
imageFileUris- array of source images urissourceFilesEncrypted- should be true if source files are encrypted with Scanbot SDK encryption mechanism, otherwise - falsepdfConfig- extra PDF configuration
-
generateFromUris
Boolean generateFromUris(Array<Uri> imageFileUris, File outputFile, Boolean sourceFilesEncrypted, PdfConfiguration pdfConfig)
Generate PDF from given images uris
- Parameters:
imageFileUris- array of source images urisoutputFile- target PDF filesourceFilesEncrypted- should be true if source files are encrypted with Scanbot SDK encryption mechanism, otherwise - falsepdfConfig- extra PDF configuration
-
generateFromPages
File generateFromPages(Array<Page> pages, PdfConfiguration pdfConfig)
Generate PDF from given list of Page objects
- Parameters:
pages- array of source pagespdfConfig- extra PDF configuration
-
generateFromPages
Boolean generateFromPages(Array<Page> pages, File outputFile, PdfConfiguration pdfConfig)
Generate PDF from given array of Page objects
- Parameters:
pages- array of source pagesoutputFile- target PDF filepdfConfig- extra PDF configuration
-
generateFromDocument
Boolean generateFromDocument(Document sourceDocument, PdfConfiguration pdfConfig)
Generate PDF from given Document
- Parameters:
sourceDocument- source documentpdfConfig- extra PDF configuration
-
generateFromDocument
Boolean generateFromDocument(Document sourceDocument, File outputFile, PdfConfiguration pdfConfig)
Generate PDF from given Document
- Parameters:
sourceDocument- source documentoutputFile- target PDF filepdfConfig- extra PDF configuration
-
generateWithOcrFromUris
File generateWithOcrFromUris(List<Uri> imageFileUris, Boolean sourceFilesEncrypted, PdfConfiguration pdfConfig, OcrEngine.OcrConfig ocrConfig)
Performs OCR and creates sandwiched OCR PDF file (from given image file URIs) with provided languages.
- Parameters:
imageFileUris- list of image file URIssourceFilesEncrypted- if true, the image files are encrypted and will be decrypted before OCRpdfConfig- the PDF configurationocrConfig- the OCR configuration
-
generateWithOcrFromUris
File generateWithOcrFromUris(List<Uri> imageFileUris, File outputFile, Boolean sourceFilesEncrypted, PdfConfiguration pdfConfig, OcrEngine.OcrConfig ocrConfig)
Performs OCR and creates sandwiched OCR PDF file (from given image file URIs) with provided languages.
- Parameters:
imageFileUris- list of image file URIsoutputFile- the output PDF filesourceFilesEncrypted- if true, the image files are encrypted and will be decrypted before OCRpdfConfig- the PDF configurationocrConfig- the OCR configuration
-
generateWithOcrFromPages
File generateWithOcrFromPages(List<Page> pages, PdfConfiguration pdfConfig, OcrEngine.OcrConfig ocrConfig)
Performs OCR and creates sandwiched OCR PDF file (from given Page objects. Use the document image from a Page.) with provided languages.
- Parameters:
pages- list of Page objects.pdfConfig- the PDF configurationocrConfig- the OCR configuration
-
generateWithOcrFromPages
Boolean generateWithOcrFromPages(List<Page> pages, File outputFile, PdfConfiguration pdfConfig, OcrEngine.OcrConfig ocrConfig)
Performs OCR and creates sandwiched OCR PDF file (from given Page objects. Use the document image from a Page.) with provided languages.
- Parameters:
pages- list of Page objects.outputFile- the output PDF filepdfConfig- the PDF configurationocrConfig- the OCR configuration
-
generateWithOcrFromDocument
Boolean generateWithOcrFromDocument(Document document, PdfConfiguration pdfConfig, OcrEngine.OcrConfig ocrConfig)
Performs OCR and creates sandwiched OCR PDF file (from given Document. Use the document image from a io.scanbot.sdk.docprocessing.Page.) with provided languages.
- Parameters:
document- the document to perform OCR on and create a PDF from.pdfConfig- the PDF configuration.ocrConfig- the OCR configuration.
-
generateWithOcrFromDocument
Boolean generateWithOcrFromDocument(Document document, File outputFile, PdfConfiguration pdfConfig, OcrEngine.OcrConfig ocrConfig)
Performs OCR and creates sandwiched OCR PDF file (from given Document. Use the document image from a io.scanbot.sdk.docprocessing.Page.) with provided languages.
- Parameters:
document- the document to perform OCR on and create a PDF from.outputFile- the output PDF filepdfConfig- the PDF configuration.ocrConfig- the OCR configuration.
-
generateWithOcrPagesFromUris
File generateWithOcrPagesFromUris(List<Uri> imageFileUris, Boolean sourceFilesEncrypted, PdfConfiguration pdfConfig, List<Page> sourceOcrPages)
Creates sandwiched OCR PDF file from given image file URIs and provided source list of io.scanbot.sdk.ocr.model.Page OCR data.
- Parameters:
imageFileUris- list of image file URIssourceFilesEncrypted- if true, the image files are encrypted and will be decrypted before OCRpdfConfig- the PDF configurationsourceOcrPages- the source list of io.scanbot.sdk.ocr.model.Page OCR data.
-
generateWithOcrPagesFromUris
File generateWithOcrPagesFromUris(List<Uri> imageFileUris, File outputFile, Boolean sourceFilesEncrypted, PdfConfiguration pdfConfig, List<Page> sourceOcrPages)
Creates sandwiched OCR PDF file from given image file URIs and provided source list of io.scanbot.sdk.ocr.model.Page OCR data.
- Parameters:
imageFileUris- list of image file URIsoutputFile- the output PDF filesourceFilesEncrypted- if true, the image files are encrypted and will be decrypted before OCRpdfConfig- the PDF configurationsourceOcrPages- the source list of io.scanbot.sdk.ocr.model.Page OCR data
-
generateWithOcrPagesFromPages
File generateWithOcrPagesFromPages(List<Page> pages, PdfConfiguration pdfConfig, List<Page> sourceOcrPages)
Creates sandwiched OCR PDF file from given Page objects and provided source list of io.scanbot.sdk.ocr.model.Page OCR data. Use the document image from a Page. with provided languages.
- Parameters:
pages- list of Page objects.pdfConfig- the PDF configuration.sourceOcrPages- the source list of io.scanbot.sdk.ocr.model.Page OCR data.
-
generateWithOcrPagesFromPages
Boolean generateWithOcrPagesFromPages(List<Page> pages, File outputFile, PdfConfiguration pdfConfig, List<Page> sourceOcrPages)
Creates sandwiched OCR PDF file from given Page objects and provided source list of io.scanbot.sdk.ocr.model.Page OCR data. Use the document image from a Page. with provided languages.
- Parameters:
pages- list of Page objects.outputFile- the output PDF filepdfConfig- the PDF configurationsourceOcrPages- the source list of io.scanbot.sdk.ocr.model.Page OCR data.
-
generateWithOcrPagesFromDocument
Boolean generateWithOcrPagesFromDocument(Document document, PdfConfiguration pdfConfig, List<Page> sourceOcrPages)
Creates sandwiched OCR PDF file from given Document and provided source list of io.scanbot.sdk.ocr.model.Page OCR data. Use the document image from a io.scanbot.sdk.docprocessing.Page. with provided languages.
- Parameters:
document- the document to perform OCR on and create a PDF from.pdfConfig- the PDF configuration.sourceOcrPages- the source list of io.scanbot.sdk.ocr.model.Page OCR data.
-
generateWithOcrPagesFromDocument
Boolean generateWithOcrPagesFromDocument(Document document, File outputFile, PdfConfiguration pdfConfig, List<Page> sourceOcrPages)
Creates sandwiched OCR PDF file from given Document and provided source list of io.scanbot.sdk.ocr.model.Page OCR data. Use the document image from a io.scanbot.sdk.docprocessing.Page. with provided languages.
- Parameters:
document- the document to perform OCR on and create a PDF from.outputFile- the output PDF filepdfConfig- the PDF configuration.sourceOcrPages- the source list of io.scanbot.sdk.ocr.model.Page OCR data.
-
-
-
-