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 Ruby SDK, use contain_image and contain_annotation on ConvertOptions.
Sample
ruby
options = ComPDFKitConversion::ConvertOptions.new
options.contain_image = true
options.contain_annotation = true
options.enable_ai_layout = true
options.enable_ocr = false
result = ComPDFKitConversion::Conversion.start_pdf_to_word(
input_file_path,
"",
output_file_path,
options
)