PdfSaveOptions class

PdfSaveOptions class

Represents the options for saving pdf file.

Inheritance: PdfSaveOptions

The PdfSaveOptions type exposes the following members:

Constructors

ConstructorDescription
__init__(self)Creates the options for saving pdf file.

Properties

PropertyDescription
save_format
clear_data
cached_file_folder
validate_merged_areas
merge_areas
create_directory
sort_names
sort_external_names
refresh_chart_cache
check_excel_restriction
update_smart_art
encrypt_document_properties
default_font
check_workbook_default_font
check_font_compatibility
is_font_substitution_char_granularity
one_page_per_sheet
all_columns_in_one_page_per_sheet
ignore_error
output_blank_page_when_nothing_to_print
page_index
page_count
printing_page_type
gridline_type
gridline_color
text_cross_type
default_edit_language
sheet_set
draw_object_event_handler
page_saving_callback
emf_render_setting
custom_render_settings
embed_standard_windows_fontsTrue to embed true type fonts.
Affects only ASCII characters 32-127.
Fonts for character codes greater than 127 are always embedded.
Fonts are always embedded for PDF/A-1a, PDF/A-1b standard.
Default is true.
bookmarkGets and sets the PdfBookmarkEntry object.
complianceGets or sets the PDF standards compliance level for output documents.
security_optionsSet this options, when security is need in xls2pdf result.
image_typeRepresents the image type when converting the chart and shape .
calculate_formulaIndicates whether to calculate formulas before saving pdf file.
pdf_compressionIndicate the compression algorithm
created_timeGets and sets the time of generating the pdf document.
producerGets and sets producer of generated pdf document.
optimization_typeGets and sets pdf optimization type.
custom_properties_exportGets or sets a value determining the way CustomDocumentPropertyCollection are exported to PDF file. Default value is None.
export_document_structureIndicates whether to export document structure.
display_doc_titleIndicates whether the window’s title bar should display the document title.
font_encodingGets or sets embedded font encoding in pdf.
watermarkGets or sets watermark to output.
embed_attachmentsIndicates whether to embed attachment for Ole objects in Excel.

Methods

MethodDescription
set_image_resample(self, desired_ppi, jpeg_quality)Sets desired PPI(pixels per inch) of resample images and jpeg quality.
All images will be converted to JPEG with the specified quality setting,
and images that are greater than the specified PPI (pixels per inch) will be resampled.

See Also