Skip to content
Guides

Convert PDF to Searchable PDF

Overview

To make a searchable PDF by adding invisible text to an image based PDF such as a scanned document using OCR.

Sample

Full code sample which shows how to use the ComPDFKit OCR module on scanned documents in multiple languages.

python
convert_options = ConvertOptions()
convert_options.enable_ocr = True
error_code = CPDFConversion.start_pdf_to_searchable_pdf(r"input_path", "password", r"output_path", convert_options)