Aspose::Page::XPS::Presentation::Pdf::PdfSaveOptions class

PdfSaveOptions class

Class for XPS-as-PDF saving options.

class PdfSaveOptions : public Aspose::Page::SaveOptions,
                       public Aspose::Page::IMultiPageSaveOptions,
                       public Aspose::Page::XPS::Presentation::IXpsTextConversionOptions,
                       public Aspose::Page::XPS::Presentation::IPipelineOptions,
                       public Aspose::Page::XPS::Presentation::IEventBasedModificationOptions

Methods

MethodDescription
get_BatchSize() overrideSpecifies the size of a portion of pages to pass from node to node.
get_BeforePageSavingEventHandlers() overrideThe collection of event handlers that performs modifications to an XPS page just before it is saved.
get_EncryptionDetails() constGets a encryption details. If not set, then no encryption will be performed.
get_ImageCompression() constSpecifies compression type to be used for all images in the document. Default is PdfImageCompression::Auto.
get_OutlineTreeExpansionLevel() constSpecifies up to what level the document outline should be expanded when the PDF file is opened in a viewer. 1 - only the first level outline items are shown, 2 - only the first and second level outline items are shown, and so on. Default is 1.
get_OutlineTreeHeight() constSpecifies the height of the document outline tree to save. 0 - the outline tree will not be converted, 1 - only the first level outline items will be converted, ans so on. Default is 10.
get_PageNumbers() overrideGets/sets the array of numbers of pages to convert.
get_PreserveText() overrideIn XPS, some text elements may contain references to alternate glyph forms that do not correspond to any character code in the font. If this flag is set to true, the text from such XPS elements is converted to graphic shapes. Then the text itself appears transparent on top. This leaves the text of such elements selectable. But the side effect is that the output file may be much larger than the original. If this flag is set to false, the characters that should be displayed as alternate forms are replaced with some other characters that become mapped to the alternate glyph forms. Therefore the text, although still selectable, will be modified and likely become unreadable. Default is false.
get_TextCompression() constSpecifies at which level in the document outline to display ApsBookmark objects. 0 - not displayed. 1 at first level and so on. Default is 0.
PdfSaveOptions()Creates new instance of options.
set_BatchSize(int32_t) overrideSpecifies the size of a portion of pages to pass from node to node.
set_EncryptionDetails(System::SharedPtr<PdfEncryptionDetails>)Sets a encryption details. If not set, then no encryption will be performed.
set_ImageCompression(PdfImageCompression)Specifies compression type to be used for all images in the document. Default is PdfImageCompression::Auto.
set_OutlineTreeExpansionLevel(int32_t)Specifies up to what level the document outline should be expanded when the PDF file is opened in a viewer. 1 - only the first level outline items are shown, 2 - only the first and second level outline items are shown, and so on. Default is 1.
set_OutlineTreeHeight(int32_t)Specifies the height of the document outline tree to save. 0 - the outline tree will not be converted, 1 - only the first level outline items will be converted, ans so on. Default is 10.
set_PageNumbers(System::ArrayPtr<int32_t>) overrideGets/sets the array of numbers of pages to convert.
set_PreserveText(bool) overrideIn XPS, some text elements may contain references to alternate glyph forms that do not correspond to any character code in the font. If this flag is set to true, the text from such XPS elements is converted to graphic shapes. Then the text itself appears transparent on top. This leaves the text of such elements selectable. But the side effect is that the output file may be much larger than the original. If this flag is set to false, the characters that should be displayed as alternate forms are replaced with some other characters that become mapped to the alternate glyph forms. Therefore the text, although still selectable, will be modified and likely become unreadable. Default is false.
set_TextCompression(PdfTextCompression)Specifies at which level in the document outline to display ApsBookmark objects. 0 - not displayed. 1 at first level and so on. Default is 0.

See Also