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 licenseScanbot SDK is part of the Apryse SDK product family
A mobile scan is just the start. With Apryse SDKs, you can expand mobile workflows into full cross‑platform document processing. Whether you need to edit PDFs, add secure digital signatures, or use a fast, customizable document viewer and editor, Apryse gives you the tools to build powerful features quickly.
Learn more
