Turning document scans into searchable PDF files with the Android OCR Module
You can use the SDK's built-in PDF generator together with the OCR Module to create searchable PDF files, using either an existing Document
object or an image file.
Example code for creating a PDF with an OCR layer from a Document
object
If you're working with an image that's already part of a Document
object:
loading...
Example code for creating a PDF with an OCR layer from images
If you're working with an image imported from the gallery as a bitmap:
loading...
You can omit the PdfConfiguration
parameter to use the default PDF settings. In this case, PdfConfiguration.default()
will be used. It has an empty PdfAttributes
, PageSize.CUSTOM
as the page size, and PageDirection.AUTO
as the default page orientation.
The details of PdfConfiguration
can be found in the SDK's API documentation. Please refer to the API references for the OcrResult
class for more details.
Want to scan longer than one minute?
Generate a free trial license to test the Scanbot SDK thoroughly.
Get free trial license