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 OFD

Overview

ComPDF Conversion SDK supports converting PDF documents to OFD documents. Similar to searchable PDF, OFD conversion also supports OCR, page background preservation, and transparent text layers.

Sample

kotlin
ConverterManager.setAIModel("<model_path>")

val ofdOptions = OfdOptions()
ofdOptions.enableOcr = true
ofdOptions.ocrLanguages = listOf(OCRLanguage.ENGLISH)
val error = ComPDFKitConverter.startPDFToOfd("scan.pdf", "", "output.ofd", ofdOptions)