Class PdfOpenOptions
- Namespace
- MiPdf
- Assembly
- MiPdf.dll
Options for Open(string, PdfOpenOptions).
public sealed class PdfOpenOptions
- Inheritance
-
PdfOpenOptions
- Inherited Members
Properties
Password
Password for encrypted documents (user or owner password).
public string? Password { get; set; }
Property Value
ReadFromFile
Reads the objects from the file when they are needed instead of loading the whole file into memory (default false). The file stays open for reading until the document is disposed; other programs can read it, and saving the document over its own file is possible. Large streams such as images are copied from the file when the document is saved, without loading them. Files larger than 2 GB are always read this way.
public bool ReadFromFile { get; set; }
Property Value
Remarks
Dispose the document when done. Objects copied into other documents (ImportPages(PdfDocument, IEnumerable<int>?, int?), Merge(IEnumerable<PdfDocument>)) read their stream data from this file, so keep the document open until those documents are saved.