PdfSaveOptions class

PdfSaveOptions class

Represents the options for saving pdf file.

The PdfSaveOptions type exposes the following members:

Constructors

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

Properties

PropertyDescription
font_encodingGets or sets embedded font encoding in pdf.
display_doc_titleIndicates whether the window’s title bar should display the document title.
export_document_structureIndicates whether to export document structure.
custom_properties_exportGets or sets a value determining the way of custom document properties are exported to PDF file. Default value is None.
optimization_typeGets and sets pdf optimization type.
producerGets and sets producer of generated pdf document.
created_timeGets and sets the time of generating the pdf document.
pdf_compressionIndicate the compression algorithm
calculate_formulaIndicates whether to calculate formulas before saving pdf file.
security_optionsSet this options, when security is need in xls2pdf result.
complianceGets or sets the PDF standards compliance level for output documents.
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.
embed_attachmentsIndicates whether to embed attachment for Ole objects in Excel.
default_edit_languageGets or sets default edit language.
text_cross_typeGets or sets displaying text type when the text width is larger than cell width.
gridline_colorGets or sets gridline colr.
gridline_typeGets or sets gridline type.
printing_page_typeIndicates which pages will not be printed.
emf_render_settingSetting for rendering Emf metafile.
page_countGets or sets the number of pages to save.
page_indexGets or sets the 0-based index of the first page to save.
ignore_errorIndicates if you need to hide the error while rendering.
The error can be error in shape, image, chart rendering, etc.
output_blank_page_when_nothing_to_printIndicates whether to output a blank page when there is nothing to print.
default_fontWhen characters in the Excel are Unicode and not be set with correct font in cell style,
They may appear as block in pdf,image.
Set the DefaultFont such as MingLiu or MS Gothic to show these characters.
If this property is not set, Aspose.Cells will use system default font to show these unicode characters.
check_workbook_default_fontWhen characters in the Excel are Unicode and not be set with correct font in cell style,
They may appear as block in pdf,image.
Set this to true to try to use workbook’s default font to show these characters first.
check_font_compatibilityIndicates whether to check font compatibility for every character in text.
is_font_substitution_char_granularityIndicates whether to only substitute the font of character when the cell font is not compatibility for it.
one_page_per_sheetIf OnePagePerSheet is true , all content of one sheet will output to only one page in result.
The paper size of pagesetup will be invalid, and the other settings of pagesetup
will still take effect.
all_columns_in_one_page_per_sheetIf AllColumnsInOnePagePerSheet is true , all column content of one sheet will output to only one page in result.
The width of paper size of pagesetup will be ignored, and the other settings of pagesetup
will still take effect.

Methods

MethodDescription
set_sheet_set(self, sheet_indexes)Creates a sheet set based on exact sheet indexes.
set_sheet_set(self, sheet_names)Creates a sheet set based on exact sheet names.
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