Skip to content
ComPDF
DemoFAQ
New Release

Open-Source PDF SDK & AI Document Processing

Get the full self-hosted SDK and AI document processing on GitHub. One-click deploy to quickly build your document workflows.

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
);