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 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 MaxAnnotationsPerPage { get; set; } #

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

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.