Skip to content
ComPDF

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