Table of Contents

Property Limits

Namespace
DocWright.Formats.Pdf
Assembly
DocWright.Formats.Pdf.dll

Limits

Gets or sets the resource limits applied while reading, or null for the defaults.

public ResourceLimits? Limits { get; set; }

Property Value

ResourceLimits

Remarks

Five of these limits are on by default for PDF (see MaxPdfNestingDepth and its neighbours), because a PDF's worst case is not bounded by its size the way a package's is. Supplying an instance with them set to null disables them, which is a decision to make deliberately and only for input you produced. The one exception is MaxPdfNestingDepth: null tightens to the reader's absolute ceiling rather than disabling the check, because the failure it guards is StackOverflowException and no catch contains that.