ComPDFKitConversion.ConvertOptions

class ComPDFKitConversion.ConvertOptions

Bases: pybind11_object

property contain_annotation

Whether to contain annotations when converting

property contain_image

Whether to contain images when converting, which takes effect only when IsAllowOCR is false

property enable_ai_layout

Whether to enable AI layout analysis during conversion

property enable_ocr

Whether to use OCR

property excel_all_content

Whether to set contain all pdf content to the xlsx file

property excel_csv_format

Whether to set to save the table in csv format

property excel_single_table_page

Whether to set a worksheet to contain only one table

property image_color_mode

Specify the image color mode of the image file

property image_path_enhance

Whether to enhance the image path

property image_scaling

Specify the image scaling of the image file

property image_type

Specify the image type of the image file

property json_contain_table

Whether to contain table when convert pdf to json

property page_layout_mode

Specify the layout mode

property page_ranges

Specify the pages to convert, e.g. “1-3,5,7-9”

property txt_table_format

Whether format table when convert pdf to txt