function AddPageObjectMark(Index: Integer; const Name: AnsiString; const Params: TPdfContentMarkParams): Integer;
| Index | Integer. Zero-based index of the page object to tag |
| Name | AnsiString. Mark name, written as a PDF name - for example Artifact, Span, or an application-defined tag. An empty name raises EPdfError |
| Params | TPdfContentMarkParams. Key/value parameters forming the property list of the mark. Pass an empty array for a mark without properties |
| Result | Integer. Zero-based index of the new mark within the object, usable with SetPageObjectMarkParam and RemovePageObjectMark |
Adds a BDC/EMC tag around the content the object draws. Each parameter is written according to its Kind, so integers, reals, strings, and byte blobs all round-trip through PageObjectMarks
The mark lives on the page object until the content stream is regenerated. Call UpdatePage before saving, otherwise the tag is dropped when the file is written
Marking is how artifacts are declared: tagging decorative content as Artifact keeps it out of the reading order that assistive technology follows
Since internal v3.403.0, direct logical text, object membership and ActualText changes clear affected saved paragraph cluster tables Geometry, style and metadata-only changes retain tables and regenerate complete represented shared mark scopes across adjacent nonempty streams Mark list membership is local to the selected object, while exact shared declarations keep their identity The bundled DLLs isolate named-property parameter edits; native builds without detachment reject a table-affecting logical change before mutation
Read native character maps again after mutation or reload These low-level operations do not supply reviewed replacement semantics or repair arbitrary tagged ownership Use the batch semantic-edit policies when those values and bindings must be reviewed together See scope, ownership and remaining source-preservation limits