Skip to content

PdfMergeOptions class

View as Markdown

Namespace: PdfNetStack
Assembly: PdfNetStack.dll
Package: PdfNetStack

Options for MergeAsync: how each input is opened and handed back, and how the merged document is saved.

public sealed record PdfMergeOptions : IEquatable<PdfMergeOptions>

Inheritance

object ← PdfMergeOptions

Implements

IEquatable<PdfMergeOptions>

Shared default instance.

public static PdfMergeOptions Default { get; }

PdfMergeOptions

Leave each input stream open once it is read, for the caller to dispose. Default false: each input is disposed as soon as it is read, so inputs opened as the enumeration reaches them are open one at a time.

public bool LeaveInputsOpen { get; init; }

bool

Password, limits and mode for every input. Null opens each on demand with the default limits: only the objects its pages use are parsed, and an input over SpoolThreshold is copied to a temporary file deleted once its pages are merged.

public PdfLoadOptions? LoadOptions { get; init; }

PdfLoadOptions?

How the merged document is saved; null for Default.

public PdfSaveOptions? SaveOptions { get; init; }

PdfSaveOptions?