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.

Conversion Options: Contain Image & Annotation

Overview

In the process of converting PDF documents into various formats, ComPDF Conversion SDK offers options to determine whether images are included in the generated document and whether annotations from the PDF file are retained.

In the Node.js SDK, use containImage and containAnnotation on the conversion options object.

Sample

js
const options = {
  containImage: true,
  containAnnotation: true,
  enableAiLayout: true,
  enableOcr: false
};

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