PDFium Delphi Component Docs

TPdfReadableContentOptions.IncludeSharedFormXObjects

Unit: PDFium
Options := TPdfReadableContentOptions.Default;
Options.IncludeFormXObjects := True;
Options.IncludeSharedFormXObjects := True;
Pdf.ReadableContentOptions := Options;

Defaults to False and takes effect only with IncludeFormXObjects; enables bounded untagged Form reuse on the same page or across pages

Every actual serialized Do invocation receives a distinct live source identity; the full NativeObjectPath identifies its nested text object, and ancestor matrices produce page-space rectangles

Repeated text and even identical overlapping geometry remain separate reading sources; SelectFragment, SelectReadingUnit and BuildSpokenReadingUnit resolve the exact native instance before changing selection or speech output

FormSourceIdentity is opaque and belongs to the current document/content revision and invocation path; do not persist it or exchange it between fragments, pages or reloaded documents

Independent cache copies, sentence slices and cross-page SourceParts retain each invocation identity; rebuild reading units after source edits, typed document replacement, reload or option changes

Artifact and language inheritance, transformed margin filtering, page following and native save/reopen retain their existing policies

The shared option alone does not enable tagged Form namespaces, semantic ActualText substitutions, explicit clipping, BBox-crossing text, singular transforms, cyclic graphs or ambiguous native/serialized mappings

Since v3.274.0, also enable IncludeTaggedFormXObjects to read individually marked Do calls using the invoking page/Form namespace; a shared unstructured Form can then appear on different pages with separate MCR/ParentTree owners and exact native glyph sources

NestedFormsComplete, NestedFormsExpanded and NestedFormsError expose rejected branches; safe siblings remain readable, while global snapshot/work failures preserve the original top-level output and bypass successful cache retention

The base Form profile limits remain unchanged: 4096 pages/invocations, 16 Form levels, 4096 native objects, 262144 UTF-16 units and bounded serialized/decoded source bytes

The AccessibilityReader examples expose Read shared Forms after Read nested Forms is enabled; changing either source option stops the previous playback and rebuilds units

Separate opt-in IncludeTaggedFormXObjects reads the bounded tagged Form profile in certified structure order, with explicit page/Form MCID namespaces and ParentTree ownership; same-page shared invocations also require IncludeSharedFormXObjects, and certified fragments carry independent live paths/identities and StructElementIndex=-1