PDFium Delphi Component Docs

TPdfReadableContentOptions.ExcludeArtifacts

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

Defaults to False; when True, readable content omits top-level objects carrying an Artifact content mark and tagged elements under Artifact structure ancestors

Artifact ancestry walks the structure Parent chain: an element whose own IsArtifact flag or type name is Artifact excludes the whole subtree, so pagination furniture such as running heads and page numbers never reaches fragments, reading units or spoken text

The filter participates in the same reader-filtering gate as the margin fields: with all of them off, readable snapshots keep the unfiltered object set

Filtering changes reader output only — it does not remove PDF objects, change page/focus/selection or rewrite saved content; native save/reopen retains the original text and Artifact marks

An ActualText, Alt or expansion owner containing filtered descendants is omitted as a whole when its semantic replacement cannot be separated safely; when all tagged readable content is filtered the result stays an empty structured result instead of reintroducing content through heuristic fallback

Use it before collecting fragments for TryComposeReadableText or BuildSpokenReadableText; changing it discards readable snapshots immediately