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.

Extract PDF To JSON

Overview

ComPDF Conversion SDK supports extracting PDF content into structured JSON data.

Use jsonContainTable to control whether table data is included in JSON output.

Sample

js
const options = {
  jsonContainTable: true,
  enableAiLayout: true,
  enableAiTableRecognition: true
};

const result = sdk.startPDFToJson(
  inputFilePath,
  "",
  outputFilePath,
  options
);