PDFiumPas Docs

TPdfReadableSemanticPartKind

Unit: PDFium
TPdfReadableSemanticPartKind = (
  spkPageObject, spkEmptyMarkedContent, spkEmptyFormInvocation);

Used by SemanticParts.Kind in TPdfContentFragment; spkEmptyFormInvocation is available since v3.285.0, updated 2026-11-02

KindSource identity and pathGeometry
spkPageObjectActual native text, path or image descendant, with an instance-specific source identity and native object pathTransformed painted bounds contribute to anchor-page LineRects and geometric margin filtering
spkEmptyMarkedContentSerialised non-painting marked-content sequence occurrence, with a real sequence identity and empty native pathNo painted bounds, glyph map or geometric margin position
spkEmptyFormInvocationReal childless Form invocation, with its actual native invocation path and handle-free per-call identityZero painted bounds, no LineRects contribution and no invented glyph or margin position

Since v3.285.0, ActualText/Alt/E around a Form Do call propagates through complete nested descendants. Each scope retains its actual declaring-stream identity, native hierarchy and language. A declaration can cover several calls and page objects; separate declarations using one named property dictionary remain separate occurrences

Enable IncludeSemanticReplacements with Form and tagged-Form inclusion; shared calls additionally require shared inclusion. Sources without certified MCR membership also require IncludeUnownedSemanticContent

Empty Form provenance is published only when native children are absent and the serialised operation inventory predicts no native child objects. A serialised/native inventory mismatch rejects the extension. Existing clips, BBox containment, transform, hierarchy, decoded-byte, object and matching-work limits apply

Since v3.286.0, spkEmptyMarkedContent also materialises explicit zero-paint MCID ranges without semantic properties of their own. Each record retains its actual stream namespace, MCID, declaring-sequence position and invocation identity, with no invented native path or geometry. Genuine enclosing structure/native declarations reference these parts; a plain empty MCID is consumed silently without creating a glyph fragment or semantic declaration

Filtering a painted descendant omits its complete semantic owner, including declarations inherited from the invoking stream. Empty calls and empty sequences have no invented coordinates. Coextensive structure/native ActualText must agree, whilst proper subsets can retain different declarations for explicit speech

Since v3.287.0, empty text-show operands do not create painted source slots. Empty literal/hexadecimal strings, continuation-only strings, numeric-only or empty TJ arrays and empty quote shows retain the enclosing non-painting sequence when appropriate. Mixed TJ strings remain one native text object; consecutive nonempty text shows remain separate. Strict inventories compare object types as well as counts before publishing source order

Since v3.288.0, no-current-path paints and paths consumed by n create no source slot, whilst closed single-point paths retain a real object when the effective round-cap state requires one. Line caps propagate through graphics-state restoration, ExtGState resources and nested Form calls. A real degenerate native object's reported transformed point/line bounds participate in margin filtering; this does not assign geometry to spkEmptyMarkedContent or spkEmptyFormInvocation

Exact current-source speech validation includes Kind, source path, invocation identity, metadata and complete coverage. Relabelling an empty invocation as a painted object rejects. These provenance records do not provide replacement-to-glyph selection

Delphi/FPC Win64 evidence covers 21 positive and 12 rejected profiles, 63 independently inspected saved outputs and 189 pages per compiler. Native source paths and complete matrix chains are independently resolved for painted bounds; empty invocation paths must resolve to real childless Forms

The v3.286.0 Delphi/FPC Win64 zero-paint profile covers sixteen positive and ten rejection cases, 48 independently inspected saved outputs and 144 pages per compiler. It qualifies shared/nested streams, inherited declarations, exact positions, cross-page logical membership and unchanged glyph mappings. Existing semantic source-stream rewrites, unprovable paint correspondence and instance-safe edits remain separate work