API Reference

Class

PdfReadLimits

Namespace OfficeIMO.Pdf
Assembly OfficeIMO.Pdf
Modifiers sealed

Resource budgets applied while parsing PDF syntax and object graphs.

Inheritance

  • Object
  • PdfReadLimits

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by

Constructors

Properties

public static PdfReadLimits Default { get; } #

Creates default parser budgets that callers can customize without changing another options instance.

public Int64 MaxInputBytes { get; set; } #

Maximum input byte count accepted before text/object scanning. Default: 512 MiB.

public Int32 MaxIndirectObjects { get; set; } #

Maximum number of indirect object declarations accepted. Default: 500,000.

public Int32 MaxRawStreamBytes { get; set; } #

Maximum raw byte count allocated for one stream. Default: 256 MiB.

public Int32 MaxDecodedStreamBytes { get; set; } #

Maximum decoded byte count produced from one filtered stream. Default: 256 MiB.

public Int32 MaxPageContentBytes { get; set; } #

Maximum aggregate decoded content-stream bytes materialized for one page. Default: 256 MiB.

public Int32 MaxActualTextCharacters { get; set; } #

Maximum characters emitted from marked-content ActualText replacements on one page, including nested Form XObjects. Default: 1,000,000.

public Int32 MaxDecodedTextCharacters { get; set; } #

Maximum font-decoded text characters emitted on one page, including nested Form XObjects. Default: 10,000,000.

public Int32 MaxObjectCharacters { get; set; } #

Maximum characters tokenized from one object or dictionary. Default: 1,000,000.

public Int32 MaxTokensPerObject { get; set; } #

Maximum syntax tokens accepted in one object or dictionary. Default: 100,000.

public Int32 MaxObjectNestingDepth { get; set; } #

Maximum nested array/dictionary depth accepted by the object parser. Default: 128.

public TimeSpan MaxObjectParsingTime { get; set; } #

Maximum wall-clock time spent in the core object parsing pass. Default: 30 seconds.

public Int32 MaxRevisions { get; set; } #

Maximum cross-reference revisions discovered in one input. Default: 10,000.

public Int32 MaxPageTreeNodes { get; set; } #

Maximum page-tree dictionaries traversed. Default: 100,000.

public Int32 MaxPageTreeDepth { get; set; } #

Maximum nested page-tree depth. Default: 1,024.

public Int32 MaxPages { get; set; } #

Maximum pages discovered in one document. Default: 100,000.

public Int32 MaxFormFields { get; set; } #

Maximum AcroForm field-tree nodes or terminal fields. Default: 100,000.

public Int32 MaxFormFieldDepth { get; set; } #

Maximum nested AcroForm field-tree depth. Default: 256.

public Int32 MaxNameTreeNodes { get; set; } #

Maximum indirect nodes traversed in one PDF name tree. Default: 100,000.

public Int32 MaxNameTreeDepth { get; set; } #

Maximum nested PDF name-tree depth. Default: 128.

public Int32 MaxAttachments { get; set; } #

Maximum attachment records discovered across name trees, associated files, and annotations. Default: 100,000.

public Int64 MaxTotalAttachmentBytes { get; set; } #

Maximum aggregate decoded bytes retained for unique embedded attachment streams. Default: 256 MiB.

public Int32 MaxFormFieldAppearanceStates { get; set; } #

Maximum named appearance states declared for one AcroForm widget. Default: 4,096.

public Int32 MaxAnnotationsPerPage { get; set; } #

Maximum annotations declared on one page. Default: 100,000.

public Int32 MaxColorSpaceResourcesPerPage { get; set; } #

Maximum named color-space resources inspected on one page. Default: 4,096.

public Int32 MaxContentOperations { get; set; } #

Maximum operators parsed from one page or form content stream. Default: 1,000,000.

public Int32 MaxContentOperands { get; set; } #

Maximum operand values and dictionary keys parsed from one page or form content stream. Default: 1,000,000.

public Int32 MaxContentNestingDepth { get; set; } #

Maximum nested lexical arrays/dictionaries or form XObjects while parsing page content. Default: 128.