Class PdfSaveOptions
Namespace: Aspose.Page.XPS.Presentation.Pdf
Assembly: Aspose.Page.dll (25.1.2)
Class for XPS-as-PDF saving options.
public class PdfSaveOptions : SaveOptions, IXpsTextConversionOptions, IPipelineOptions, IEventBasedModificationOptions
Inheritance
object ← SaveOptions ← PdfSaveOptions
Implements
IXpsTextConversionOptions, IPipelineOptions, IEventBasedModificationOptions
Inherited Members
SaveOptions.SupressErrors, SaveOptions.Size, SaveOptions.Exceptions, SaveOptions.Debug, SaveOptions.AdditionalFontsFolders, SaveOptions.JpegQualityLevel, object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
PdfSaveOptions()
Creates new instance of options.
public PdfSaveOptions()
Properties
BatchSize
Specifies the size of a portion of pages to pass from node to node.
public int BatchSize { get; set; }
Property Value
BeforePageSavingEventHandlers
The collection of event handlers that performs modifications to an XPS page just before it is saved.
public IList<beforepagesavingeventhandler> BeforePageSavingEventHandlers { get; }
Property Value
IList<BeforePageSavingEventHandler>
EncryptionDetails
Gets or sets a encryption details. If not set, then no encryption will be performed.
public PdfEncryptionDetails EncryptionDetails { get; set; }
Property Value
ImageCompression
Specifies compression type to be used for all images in the document. Default is Aspose.Page.XPS.Presentation.Pdf.PdfImageCompression.Auto.
public PdfImageCompression ImageCompression { get; set; }
Property Value
OutlineTreeExpansionLevel
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.
public int OutlineTreeExpansionLevel { get; set; }
Property Value
OutlineTreeHeight
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.
public int OutlineTreeHeight { get; set; }
Property Value
PageNumbers
Gets/sets the array of numbers of pages to convert.
public int[] PageNumbers { get; set; }
Property Value
int[]
PreserveText
In 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.
public bool PreserveText { get; set; }
Property Value
TextCompression
Specifies compression type to be used for all content streams except images. Default is Aspose.Page.XPS.Presentation.Pdf.PdfTextCompression.Flate.
public PdfTextCompression TextCompression { get; set; }