Saving recognition results as a searchable PDF
To convert recognition results into a searchable and indexable PDF document, use SaveMultipageDocument
method of AsposeOcr
class. This can be useful for recognizing books, contracts, articles, and other printouts consisting of multiple pages, as well as for batch recognition. Provide SaveFormat.Pdf
as saveFormat
parameter.
In addition to the recognized text, you can save the resulting PDF may have original images in the background and a transparent text overlay that can be searched, selected and copied. The type of the PDF document is controlled by the selected result type option:
Format | Description |
---|---|
Format.Pdf |
The original images are placed in the background; the recognized text is placed as an invisible but searchable and selectable overlay on top of the images. Can be useful if you need to keep all notes, images, marks and other data along with the text. |
Format.PdfNoImg |
The PDF document containing only the recognized text. The original images are not saved along with the recognition results. This can be useful when digitizing large amounts of high-quality text (such as books) so that the resulting file takes up much less space than using the SaveFormat.Pdf parameter. |
You can optionally enable automatic spelling corrections for recognition results, provide a custom dictionary, or specify the font to be embedded into a PDF document. The latter is only applicable when saving recognition results into text-only PDF (Format.PdfNoImg
).