Table of Contents

Enum PdfDocumentOpenMode

Namespace
PdfSharp.Pdf.IO
Assembly
PdfSharp.dll

Determines how a PDF document is opened.

public enum PdfDocumentOpenMode

Fields

Import = 1

The PDF stream is opened for importing pages from it. A document opened in this mode cannot be modified.

[Obsolete("InformationOnly is not implemented, use Import instead.")] InformationOnly = 3

The PDF stream is partially read for information purposes only. The only valid operation is to call the Info property at the imported document. This option is very fast and needs less memory and is e.g. useful for browsing information about a collection of PDF documents in a user interface.

Modify = 0

The PDF stream is completely read into memory and can be modified. Pages can be deleted or inserted, but it is not possible to extract pages. This mode is useful for modifying an existing PDF document.

[Obsolete("ReadOnly is not implemented, use Import instead.")] ReadOnly = 2

The PDF stream is completely read into memory, but cannot be modified. This mode preserves the original internal structure of the document and is useful for analyzing existing PDF files.