PDFiumPas Docs

ContentEventCount method

Component: TPdf · Unit: PDFium

Added in internal v3.404.0, updated 2026-11-10

Syntax

function ContentEventCount: Integer; overload;
function ContentEventCount(const ContainerPath: TPdfCharacterSourcePath): Integer; overload;

Counts parsed BMC, BDC, EMC, MP and DP source events independently of the native paint-object inventory, including empty declarations and marked points

An empty path selects the current page; a nonempty path selects one Form invocation using a root page-object index followed by Form child indexes, all zero-based

Zero means an available container with no marked-content events; minus one means a closed page, invalid path, missing optional extension, expired snapshot, incomplete native operands or rejected resource budget

Bundled Win32/Win64 ordinary and V8/XFA DLLs provide the extension in internal v3.404.0; other runtimes remain usable without it

Bounds and lifetime

The profile limits each container to 65536 events, 64 open scopes, 1048576 native objects, 16 MiB of captured scalar/key/tag bytes, 262144 direct node/entry work units and property depth 32; container paths have at most 64 entries

Direct property graphs are counted once when shared; indirect payload references remain document-owned and are not recursively traversed by the capture budget

Queries become unavailable after object or parameter edits and generation until the page is freshly parsed; internal anchors used by preserving transactions have a separate lifetime

The inventory follows native source interpretation and is not a proof that every source painting operation was modeled or that arbitrary glyph data is authentic

See also

TryGetContentEvent, BeginPageObjectEditTransaction, TryGetCharacterSource