Cleanups the storage folders of the Scanbot SDK.
By calling this function all output files generated by the native Scanbot SDKs
as well as by this Plugin will be deleted, including the image files of all scanned
or imported Page objects, all generated PDF files, TIFF files, etc.
Creates a page from an image file URI. The given image will be used as ORIGINAL image.
Use the shouldDetectDocument flag to specify whether the auto-document detection
should be performed and the (cropped) DOCUMENT image should be created.
originalImageSizeLimit the maximum size of the original image to be saved. If the original image is larger than the specified size it will be downscaled. By default not specified.
documentImageSizeLimit the maximum size of the cropped document image to be saved. If the image is larger than the specified size it will be downscaled. If originalImageSizeLimit is set it also limits the size of the cropped document image. By default not specified.
return Page
Creates a page from image bytes. The given image will be used as ORIGINAL image.
Use the shouldDetectDocument flag to specify whether the auto-document detection
originalImageSizeLimit the maximum size of the original image to be saved. If the original image is larger than the specified size it will be downscaled. By default not specified.
documentImageSizeLimit the maximum size of the cropped document image to be saved. If the image is larger than the specified size it will be downscaled. If originalImageSizeLimit is set it also limits the size of the cropped document image. By default not specified.
return Page
Renders a multi-page PDF document from DOCUMENT images of the given pages
and stores it as a file. For each DOCUMENT image a separate PDF page is generated.
All given pages must have the DOCUMENT images.
Renders a multi-page TIFF image from DOCUMENT images of the given pages
and stores it as a file. For each DOCUMENT image a separate TIFF page is generated.
All given pages must have the DOCUMENT images.
Removes a page with all its files (ORIGINAL image, DOCUMENT image,
previews/thumbnails, filtered images, etc) from the file storage of the Scanbot SDK.
This method does not remove any exported files (PDF, TIFF, etc) which were
generated based on this page object.
Detect barcodes from image file uri
The Barcode Scanner is able to recognize 1D- and 2D-barcodes (QR codes, etc).
barcodeFormats Format of barcode which need to recognize
acceptedDocumentFormats Format of document which need to recognize
Performs auto document detection on the ORIGINAL image of the given page
and creates (cropped) DOCUMENT image.
The given page must have the ORIGINAL image.
return Page with detected polygon.
Estimate blurriness on a given page.
The document image will be analyzed, if possible. If there is no document image - then the original image will be used.
Returns the value between 0.0 and 1.0. Values closer to 0.0 mean that the image is sharper, values closer to 1.0 - the image is blurred.
Creates a preview image file of the DOCUMENT image by given filter.
Does not modify the actual DOCUMENT image of the passed page.
Use the 'applyImageFilter(page, filter)' method to finally apply an image filter on a page.