Convert PDF to Searchable PDF
Overview
ComPDF Conversion SDK supports converting scanned or image-based PDF documents into searchable PDF files.
This feature usually requires OCR and DocumentAI model resources.
Sample
js
sdk.setDocumentAIModel("/path/to/documentai.model", -1);
const options = {
enableOcr: true,
languages: [3]
};
const result = sdk.startPDFToSearchablePDF(
inputFilePath,
"",
outputFilePath,
options
);