PdfLoadOptions
Overview
PdfLoadOptions is a class in Aspose.Words FOSS for .NET.
Inherits from: LoadOptions.
Allows to specify additional options when loading Pdf document into a Document object.
This class provides 2 methods for working with PdfLoadOptions objects in .NET programs.
Available methods include: Equals, LoadOptions.
All public members are accessible to any .NET application after installing the Aspose.Words FOSS for .NET package.
Properties: BaseUri, ConvertMetafilesToPng, ConvertShapeToOfficeMath, Encoding, FontSettings, IgnoreOleData, and 15 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
PageIndex | int | Read/Write | Gets or sets the 0-based index of the first page to read. |
PageCount | int | Read/Write | Gets or sets the number of pages to read. |
SkipPdfImages | bool | Read/Write | Gets or sets the flag indicating whether images must be skipped while loading PDF document. |
LoadFormat | LoadFormat | Read/Write | Specifies the format of the document to be loaded. |
Password | string | Read/Write | Gets or sets the password for opening an encrypted document. |
BaseUri | string | Read/Write | Gets or sets the string that will be used to resolve relative URIs found in the document into absolute URIs when required. |
Encoding | Encoding | Read/Write | Gets or sets the encoding that will be used to load an HTML, TXT, or CHM document if the encoding is not specified inside the document. |
ResourceLoadingCallback | IResourceLoadingCallback | Read/Write | Allows to control how external resources (images, style sheets) are loaded when a document is imported from HTML, MHTML. |
WarningCallback | IWarningCallback | Read/Write | Called during a load operation, when an issue is detected that might result in data or formatting fidelity loss. |
ProgressCallback | IDocumentLoadingCallback | Read/Write | Called during loading a document and accepts data about loading progress. |
PreserveIncludePictureField | bool | Read/Write | Gets or sets whether to preserve the INCLUDEPICTURE field when reading Microsoft Word formats. |
ConvertShapeToOfficeMath | bool | Read/Write | Gets or sets whether to convert shapes with EquationXML to Office Math objects. |
FontSettings | FontSettings | Read/Write | Allows to specify document font settings. |
TempFolder | string | Read/Write | Allows to use temporary files when reading document. |
ConvertMetafilesToPng | bool | Read/Write | Gets or sets whether to convert metafile(Wmf or Emf) images to Png image format. |
MswVersion | MsWordVersion | Read/Write | Allows to specify that the document loading process should match a specific MS Word version. |
UpdateDirtyFields | bool | Read/Write | Specifies whether to update the fields with the dirty attribute. |
IgnoreOleData | bool | Read/Write | Specifies whether to ignore the OLE data. |
UseSystemLcid | bool | Read/Write | Gets or sets whether to use LCID value obtained from Windows registry to determine page setup default margins. |
LanguagePreferences | LanguagePreferences | Read | Gets language preferences that will be used when document is loading. |
RecoveryMode | DocumentRecoveryMode | Read/Write | Defines how the document should be handled if errors occur during loading. |
Methods
| Signature | Description |
|---|---|
LoadOptions() | Initializes a new instance of this class with default values. |
Equals(obj: object) | Determines whether the specified object is equal in value to the current object. |