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. OFD conversion also supports OCR, page background preservation, and transparent text layer options.

Sample

ruby
ComPDFKitConversion::LibraryManager.set_document_ai_model("/path/to/documentai.model", -1)

options = ComPDFKitConversion::ConvertOptions.new
options.enable_ocr = true
options.languages = [ComPDFKitConversion::OCRLanguage::ENGLISH]

result = ComPDFKitConversion::Conversion.start_pdf_to_ofd(
  input_file_path,
  "",
  output_file_path,
  options
)