PDFium Delphi Component Docs

TPdfReadableContentOptions.IncludeFormXObjects

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

Defaults to False; set a complete TPdfReadableContentOptions record on TPdf to enable the bounded untagged heuristic Form reader profile

Uniquely invoked Form XObjects expand in native content order, including nested transforms, inherited Artifact/language marks and page-axis margin filtering; tagged page logical order is retained without appending heuristic Form text

Ownership is checked across the page-content graph of every document page, counting actual Do calls rather than resource dictionary entries; shared invocations on the same or another page require the separate IncludeSharedFormXObjects option

Each expanded fragment has a zero-based NativeObjectPath from page object to nested text object and an opaque FormSourceIdentity; these fields also survive reading-unit and cross-page SourceParts copies

The identity belongs to the current runtime document/content revision and is not a portable file ID; edits, document replacement and reload invalidate old nested selections even when text and geometry are unchanged

NestedFormsComplete, NestedFormsExpanded and NestedFormsError report coverage; supported siblings remain available beside rejected Forms, whilst snapshot/global-budget failures retain the original top-level output

Unsupported or incomplete expansion bypasses successful readable-cache retention and retries on the next query; missing optional native inspection functions produce diagnostics

Exact SelectFragment, SelectReadingUnit and BuildSpokenReadingUnit mappings verify source identity, object path, full native object text and transformed geometry before changing caller state

The default untagged profile rejects tagged Form namespaces/MCIDs, ActualText substitutions, explicit clipping, content crossing Form BBox bounds, singular/invalid matrices and cyclic graphs

Limits are 64 MiB source/total object bytes, 8 MiB individual objects/decoded sequences, 32 MiB aggregate decoded data, 65536 active objects and object numbers below 1048576 since v3.292.0, 4096 pages/Form invocations, 16 Form levels, 4096 native page objects and 262144 reader UTF-16 units; coordinates/matrix values are finite within 1000000

Native source snapshotting and parsing have bounded accepted buffers; these limits do not establish a process-wide native parser allocation or CPU-time limit

Set IncludeSharedFormXObjects together with IncludeFormXObjects to read each untagged shared invocation separately, including identical overlapping text; source identities bind the live invocation and full object path

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