PDFium Delphi Component Docs

RemovePageObjectMark method

Component: TPdf  ·  Unit: PDFium
Delete one marked-content tag from a page object

Syntax

procedure RemovePageObjectMark(Index, MarkIndex: Integer);

IndexInteger. Zero-based index of the page object
MarkIndexInteger. Zero-based index of the mark within that object, as reported by PageObjectMarks or returned by AddPageObjectMark

Description

Removes the whole mark, name and property list together. To drop a single property whilst keeping the mark, use RemovePageObjectMarkParam

Removing a mark renumbers the marks after it, so a loop that deletes several marks from one object should walk the indexes backwards

Call UpdatePage before saving so the content stream is written without the tag

Saved paragraph metadata

Since internal v3.403.0, direct logical text, object membership and ActualText changes clear the affected saved paragraph cluster tables Geometry, style and metadata-only changes retain the tables and regenerate complete represented shared mark scopes across adjacent nonempty streams Mark list membership is local to the selected object, whilst 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 the 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

See Also

AddPageObjectMark, PageObjectMarks, RemovePageObjectMarkParam, UpdatePage