Table of Contents

Class PdfSaveOptions

Namespace
MiPdf.IO
Assembly
MiPdf.dll

Options controlling how a document is written.

public sealed class PdfSaveOptions
Inheritance
PdfSaveOptions
Inherited Members

Properties

CompressUncompressedStreams

Flate-compresses streams that are stored without any filter (full saves only).

public bool CompressUncompressedStreams { get; set; }

Property Value

bool

Incremental

Appends changes to the original file instead of rewriting it (ISO 32000-2, 7.5.6). Required to preserve existing digital signatures. Only valid for documents opened from a file.

public bool Incremental { get; set; }

Property Value

bool

UpdateModificationDate

Sets the modification date (/ModDate, and xmp:ModifyDate / xmp:MetadataDate in existing XMP metadata) to the current time (default true). Signing and long-term validation updates never change the document information.

public bool UpdateModificationDate { get; set; }

Property Value

bool

UpdateProducer

For documents opened from a file: appends "; modified with miPDFlib" to the producer (/Producer and pdf:Producer), or sets "miPDFlib" if there is none (default true). Set Producer yourself and disable this option for a different text.

public bool UpdateProducer { get; set; }

Property Value

bool

UseObjectStreams

Packs non-stream objects into compressed object streams and writes a cross-reference stream (PDF 1.5+). Produces considerably smaller files. Ignored for incremental saves.

public bool UseObjectStreams { get; set; }

Property Value

bool

Version

Overrides the PDF version written into the header, e.g. "1.7" or "2.0".

public string? Version { get; set; }

Property Value

string