DeletePageElementMarkedContentProperty

Content stream editing, Tagged PDF

Description

Deletes one property from an exact marked-content frame captured by page-element enumeration

Syntax

Delphi

Function TPDFlib.DeletePageElementMarkedContentProperty(ElementID, MarkedContentIndex: Integer; Const PropertyName: WideString): Integer;

Parameters

ElementIDOpaque page-element handle
MarkedContentIndex1-based frame index in outer-to-inner order
PropertyNameExisting PDF property name with or without a leading slash

Return values

1The property was deleted and all page-element snapshot handles were invalidated
0The property does not exist, the handle or frame is invalid, the snapshot is stale or a named property resource cannot be resolved

Remarks

Deleting the final property compacts the instruction from BDC to BMC

Named property lists are copied to a page-local private resource before editing so other occurrences and inherited-resource users remain unchanged

On failure, inspect LastErrorCode: 529 means invalid input, 530 means stale content and 531 means an unresolved named property resource