Click or drag to resize

PdfLoadOptions Class

Represents options used for loading a PdfDocument from a PDF file.
Inheritance Hierarchy
SystemObject
  SautinSoft.PdfPdfLoadOptions

Namespace: SautinSoft.Pdf
Assembly: SautinSoft.Pdf (in SautinSoft.Pdf.dll) Version: 2024.11.26
Syntax
public sealed class PdfLoadOptions

The PdfLoadOptions type exposes the following members.

Constructors
 NameDescription
Public methodPdfLoadOptions Initializes a new instance of the PdfLoadOptions class.
Top
Properties
 NameDescription
Public propertyAuthorizationOnDocumentOpen

Gets or sets a value indicating whether authorization should be handled right away when PDF document is opened or when the first string or stream is read.

Default value: .

Public propertyStatic memberDefault Gets the default options used for loading any PdfDocument from a PDF file.
Public propertyPassword

Gets or sets the password used to load a PDF document from a password-encrypted PDF file.

If PDF file is not encrypted, then this property is ignored.

If PDF file is encrypted and Password is invalid, then InvalidPdfPasswordException is thrown when loading a PDF document.

Public propertyReadOnly

Gets or sets a value indicating whether to load a PdfDocument from a read-only PDF file so that changes made to the PdfDocument cannot be saved back to the same PDF file.

Default value: .

Public propertyRebuildXrefIfCorrupted

Gets or sets a value indicating whether the Xref table should be rebuilt if it is corrupted or missing.

Default value: .

Top
Events
 NameDescription
Public eventLoadingEncrypted Occurs when a PDF document is being loaded from an encrypted PDF file. This even must be handled in cases when some kind of authorization (for example, password) is required in order to decrypt the PDF file.
Top
See Also