PdfReadLimits
OfficeIMO.Pdf
Resource budgets applied while parsing PDF syntax and object graphs.
Inheritance
- object
- PdfReadLimits
Usage
Explore 2 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 2
- Property PdfLoadOptions.Limits
- Method PdfReadLimits.Clone
Constructors
public PdfReadLimits() #Methods
public PdfReadLimits Clone() #Creates an independent snapshot of every parser and content resource budget.
Returns
PdfReadLimitsInherited Methods
Properties
public long MaxInputBytes { get; init; } #Maximum input byte count accepted before text/object scanning. Default: 512 MiB.
public int MaxIndirectObjects { get; init; } #Maximum number of indirect object declarations accepted. Default: 500,000.
public int MaxRawStreamBytes { get; init; } #Maximum raw byte count allocated for one stream. Default: 256 MiB.
public int MaxDecodedStreamBytes { get; init; } #Maximum decoded byte count produced from one filtered stream. Default: 256 MiB.
public long MaxTotalDecodedStreamBytes { get; init; } #Maximum aggregate decoded stream bytes cached while parsing one document. Default: 512 MiB.
public int MaxPageContentBytes { get; init; } #Maximum aggregate decoded content-stream bytes materialized for one page. Default: 256 MiB.
public long MaxRetainedContentBytes { get; init; } #Maximum aggregate decoded content-stream bytes retained by one document-wide validation operation. Default: 512 MiB.
public int MaxActualTextCharacters { get; init; } #Maximum characters emitted from marked-content ActualText replacements on one page, including nested Form XObjects. Default: 1,000,000.
public int MaxDecodedTextCharacters { get; init; } #Maximum font-decoded text characters emitted on one page, including nested Form XObjects. Default: 10,000,000.
public int MaxTextSearchMatches { get; init; } #Maximum text-search matches materialized by one Find or ReplaceAll operation. Default: 100,000.
public int MaxTextSearchFlowComparisons { get; init; } #Maximum geometric line-pair comparisons while grouping text-search flows on one page. Default: 1,000,000.
public int MaxTextSearchTableDetectionWork { get; init; } #Maximum layout work spent detecting table cells for text search on one page. Default: 1,000,000.
public int MaxObjectCharacters { get; init; } #Maximum characters tokenized from one object or dictionary. Default: 16,000,000.
public int MaxTokensPerObject { get; init; } #Maximum syntax tokens accepted in one object or dictionary. Default: 1,000,000.
public int MaxObjectNestingDepth { get; init; } #Maximum nested array/dictionary depth accepted by the object parser. Default: 128.
public TimeSpan MaxObjectParsingTime { get; init; } #Maximum wall-clock time spent in the core object parsing pass. Default: 30 seconds.
public int MaxRevisions { get; init; } #Maximum cross-reference revisions discovered in one input. Default: 10,000.
public int MaxPageTreeNodes { get; init; } #Maximum page-tree dictionaries traversed. Default: 100,000.
public int MaxPageTreeDepth { get; init; } #Maximum nested page-tree depth. Default: 1,024.
public int MaxPages { get; init; } #Maximum pages discovered in one document. Default: 100,000.
public int MaxFormFields { get; init; } #Maximum AcroForm field-tree nodes or terminal fields. Default: 100,000.
public int MaxFormFieldDepth { get; init; } #Maximum nested AcroForm field-tree depth. Default: 256.
public int MaxNameTreeNodes { get; init; } #Maximum indirect nodes traversed in one PDF name tree. Default: 100,000.
public int MaxNameTreeDepth { get; init; } #Maximum nested PDF name-tree depth. Default: 128.
public int MaxJavaScriptBytes { get; init; } #Maximum decoded source bytes retained for one named, form-field or widget JavaScript action. Default: 4,000,000.
public int MaxJavaScripts { get; init; } #Maximum JavaScript entries discovered in one PDF action surface. Default: 10,000.
public int MaxWidgetActions { get; init; } #Maximum field and widget action nodes materialized while reading AcroForm action graphs. Default: 100,000.
public long MaxTotalJavaScriptBytes { get; init; } #Maximum aggregate decoded source bytes retained for one PDF JavaScript action surface. Default: 32 MiB.
public int MaxAttachments { get; init; } #Maximum attachment records discovered across name trees, associated files, and annotations. Default: 100,000.
public long MaxTotalAttachmentBytes { get; init; } #Maximum aggregate decoded bytes retained for unique embedded attachment streams. Default: 256 MiB.
public int MaxFormFieldAppearanceStates { get; init; } #Maximum named appearance states declared for one AcroForm widget. Default: 4,096.
public int MaxAnnotationsPerPage { get; init; } #Maximum annotations declared on one page. Default: 100,000.
public int MaxColorSpaceResourcesPerPage { get; init; } #Maximum named color-space resources inspected on one page. Default: 4,096.
public int MaxContentOperations { get; init; } #Maximum operators parsed from one page or form content stream. Default: 16,000,000.
public int MaxFunctionShadingPixels { get; init; } #Maximum aggregate pixels sampled from function shadings during one page projection. Default: 16,000,000.
public int MaxFunctionShadingEvaluationWork { get; init; } #Maximum aggregate calculator work for function shading during one page projection. Default: 512,000,000.
public int MaxContentOperands { get; init; } #Maximum operand values and dictionary keys parsed from one page or form content stream, and maximum cumulative dash-array entries projected during one page operation, including nested forms. Default: 16,000,000.
public int MaxContentNestingDepth { get; init; } #Maximum nested lexical arrays/dictionaries, marked-content scopes, or form XObjects while parsing page content. Default: 128.
public int MaxGraphicsStateDepth { get; init; } #Maximum graphics states saved with q and not yet restored with Q in one content stream: page contents, a form XObject, a pattern, a Type 3 glyph or an annotation appearance. Default: 1,024.
public int MaxType3GlyphInvocationsPerPage { get; init; } #Maximum Type 3 glyph programs invoked while rendering one page, including nested forms. Default: 1,000,000.
public int MaxImageReferenceSteps { get; init; } #Maximum indirect-reference steps followed while resolving one image's filter and decode-parameter arrays. Default: 100,000.
public int MaxPositionedTextCharactersPerPage { get; init; } #Maximum characters expanded into individually positioned drawing glyphs per page, including nested forms. Glyph frames rejected by page or clip bounds do not count. Default: 100,000.
public int MaxPositionedTextWorkCharactersPerPage { get; init; } #Maximum characters materialized or measured for positioned-glyph visibility in one page render, including invisible glyphs and nested forms. Charged before glyph strings or outlines are allocated. Default: 100,000.
public int MaxPositionedTextProjectionCharactersPerPage { get; init; } #Maximum characters scanned while projecting spaced text on one rendered page, including clipped and off-page runs. Default: 1,000,000.
public int MaxClippedTextFontCopyWorkPerPage { get; init; } #Maximum estimated face comparisons while copying fonts for clipped positioned text on one page. Default: 1,000,000.
public long MaxClippingIntersectionWorkPerPage { get; init; } #Maximum clip-path intersection work (flattened vertices compared) while resolving the clipping paths of one page operation. Default: 1,000,000. Raise it for trusted documents whose dense clipping needs more; rendering retains clipped geometry per element, so higher values also raise render memory.
public int MaxPrintProductionContexts { get; init; } #Maximum distinct content-stream contexts examined by one PDF/X color inspection. Default: 4,096.
public int MaxPrintProductionOperations { get; init; } #Maximum aggregate content operations examined by one PDF/X color inspection. Default: 5,000,000.