API Reference
PdfReadLimits
Resource budgets applied while parsing PDF syntax and object graphs.
Inheritance
- Object
- PdfReadLimits
Usage
Explore 3 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 3
- Property PdfLoadOptions.Limits
- Method PdfReadLimits.Clone
- Property PdfReadLimits.Default
Constructors
public PdfReadLimits() #Methods
public PdfReadLimits Clone() #PdfReadLimitsCreates an independent snapshot of every parser and content resource budget.
Inherited Methods
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?
Properties
public static PdfReadLimits Default { get; } #Creates default parser budgets that callers can customize without changing another options instance.
public Int64 MaxInputBytes { get; init; } #Maximum input byte count accepted before text/object scanning. Default: 512 MiB.
public Int32 MaxIndirectObjects { get; init; } #Maximum number of indirect object declarations accepted. Default: 500,000.
public Int32 MaxRawStreamBytes { get; init; } #Maximum raw byte count allocated for one stream. Default: 256 MiB.
public Int32 MaxDecodedStreamBytes { get; init; } #Maximum decoded byte count produced from one filtered stream. Default: 256 MiB.
public Int64 MaxTotalDecodedStreamBytes { get; init; } #Maximum aggregate decoded stream bytes cached while parsing one document. Default: 512 MiB.
public Int32 MaxPageContentBytes { get; init; } #Maximum aggregate decoded content-stream bytes materialized for one page. Default: 256 MiB.
public Int64 MaxRetainedContentBytes { get; init; } #Maximum aggregate decoded content-stream bytes retained by one document-wide validation operation. Default: 512 MiB.
public Int32 MaxActualTextCharacters { get; init; } #Maximum characters emitted from marked-content ActualText replacements on one page, including nested Form XObjects. Default: 1,000,000.
public Int32 MaxDecodedTextCharacters { get; init; } #Maximum font-decoded text characters emitted on one page, including nested Form XObjects. Default: 10,000,000.
public Int32 MaxTextSearchMatches { get; init; } #Maximum text-search matches materialized by one Find or ReplaceAll operation. Default: 100,000.
public Int32 MaxTextSearchFlowComparisons { get; init; } #Maximum geometric line-pair comparisons while grouping text-search flows on one page. Default: 1,000,000.
public Int32 MaxTextSearchTableDetectionWork { get; init; } #Maximum layout work spent detecting table cells for text search on one page. Default: 1,000,000.
public Int32 MaxObjectCharacters { get; init; } #Maximum characters tokenized from one object or dictionary. Default: 1,000,000.
public Int32 MaxTokensPerObject { get; init; } #Maximum syntax tokens accepted in one object or dictionary. Default: 100,000.
public Int32 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 Int32 MaxRevisions { get; init; } #Maximum cross-reference revisions discovered in one input. Default: 10,000.
public Int32 MaxPageTreeNodes { get; init; } #Maximum page-tree dictionaries traversed. Default: 100,000.
public Int32 MaxPageTreeDepth { get; init; } #Maximum nested page-tree depth. Default: 1,024.
public Int32 MaxPages { get; init; } #Maximum pages discovered in one document. Default: 100,000.
public Int32 MaxFormFields { get; init; } #Maximum AcroForm field-tree nodes or terminal fields. Default: 100,000.
public Int32 MaxFormFieldDepth { get; init; } #Maximum nested AcroForm field-tree depth. Default: 256.
public Int32 MaxNameTreeNodes { get; init; } #Maximum indirect nodes traversed in one PDF name tree. Default: 100,000.
public Int32 MaxNameTreeDepth { get; init; } #Maximum nested PDF name-tree depth. Default: 128.
public Int32 MaxJavaScriptBytes { get; init; } #Maximum decoded source bytes retained for one named, form-field or widget JavaScript action. Default: 4,000,000.
public Int32 MaxJavaScripts { get; init; } #Maximum JavaScript entries discovered in one PDF action surface. Default: 10,000.
public Int32 MaxWidgetActions { get; init; } #Maximum field and widget action nodes materialized while reading AcroForm action graphs. Default: 100,000.
public Int64 MaxTotalJavaScriptBytes { get; init; } #Maximum aggregate decoded source bytes retained for one PDF JavaScript action surface. Default: 32 MiB.
public Int32 MaxAttachments { get; init; } #Maximum attachment records discovered across name trees, associated files, and annotations. Default: 100,000.
public Int64 MaxTotalAttachmentBytes { get; init; } #Maximum aggregate decoded bytes retained for unique embedded attachment streams. Default: 256 MiB.
public Int32 MaxFormFieldAppearanceStates { get; init; } #Maximum named appearance states declared for one AcroForm widget. Default: 4,096.
public Int32 MaxAnnotationsPerPage { get; init; } #Maximum annotations declared on one page. Default: 100,000.
public Int32 MaxColorSpaceResourcesPerPage { get; init; } #Maximum named color-space resources inspected on one page. Default: 4,096.
public Int32 MaxContentOperations { get; init; } #Maximum operators parsed from one page or form content stream. Default: 1,000,000.
public Int32 MaxFunctionShadingPixels { get; init; } #Maximum aggregate pixels sampled from function shadings during one page projection. Default: 16,000,000.
public Int32 MaxFunctionShadingEvaluationWork { get; init; } #Maximum aggregate calculator work for function shading during one page projection. Default: 512,000,000.
public Int32 MaxContentOperands { get; init; } #Maximum operand values and dictionary keys parsed from one page or form content stream. Default: 1,000,000.
public Int32 MaxContentNestingDepth { get; init; } #Maximum nested lexical arrays/dictionaries or form XObjects while parsing page content. Default: 128.
public Int32 MaxType3GlyphInvocationsPerPage { get; init; } #Maximum Type 3 glyph programs invoked while rendering one page, including nested forms. Default: 1,000,000.
public Int32 MaxImageReferenceSteps { get; init; } #Maximum indirect-reference steps followed while resolving one image's filter and decode-parameter arrays. Default: 100,000.
public Int32 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 Int32 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 Int32 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 Int32 MaxClippedTextFontCopyWorkPerPage { get; init; } #Maximum estimated face comparisons while copying fonts for clipped positioned text on one page. Default: 1,000,000.
public Int32 MaxPrintProductionContexts { get; init; } #Maximum distinct content-stream contexts examined by one PDF/X color inspection. Default: 4,096.
public Int32 MaxPrintProductionOperations { get; init; } #Maximum aggregate content operations examined by one PDF/X color inspection. Default: 5,000,000.