DeletePageElement
Content stream editing
Description
Deletes the exact text, image placement, or painted path represented by an enumeration handle. The method reparses the source layer and verifies the captured instruction fingerprint before writing. Text bytes are removed while a numeric text advance preserves the position of following relative text
Syntax
Delphi
Function TPDFlib.DeletePageElement(ElementID: Integer): Integer;ActiveX
Function PDFlib::DeletePageElement(ElementID As Long) As LongDLL
int DLDeletePageElement(int InstanceID, int ElementID);Return values
| 1 | The element was deleted and all snapshot handles were invalidated |
|---|---|
| 0 | The handle is stale, the source changed, or the edit cannot preserve text layout safely |