TPDFlibPageElement
Data types, content stream editing
Description
A unified record for a non-empty text display, concrete image placement, or painted path returned by EnumPageElements. Its opaque ID and instruction locator bind the result to an exact editable paint object
Syntax
Delphi
Type TPDFlibPageElement= Record
ElementID: Integer;
Kind: TPDFlibPageElementKind;
Page: Integer;
ContentLayer: Integer;
FirstInstruction: Integer;
LastInstruction: Integer;
Left, Top, Right, Bottom: Double;
Text: WideString;
FontName: WideString;
FontSize: Double;
ImageID: Integer;
PointCount: Integer;
IsClosed: Boolean;
PaintOp: WideString;
End;Fields
| ElementID | Opaque handle accepted by page-element mutation, effective clipping-path and marked-content query APIs |
|---|---|
| Kind | Text, image, or path classification |
| Page | One-based page number |
| ContentLayer | One-based content layer |
| FirstInstruction | First zero-based instruction in the inclusive source range |
| LastInstruction | Last zero-based instruction in the inclusive source range |
| Left, Top, Right, Bottom | Axis-aligned bounds in the current page coordinate system |
| Text, FontName, FontSize | Text metadata for ekText |
| ImageID | Image resource handle for ekImage |
| PointCount, IsClosed, PaintOp | Path metadata for ekPath |
Lifetime
ElementID remains valid until the next enumeration or successful page-element mutation on the same TPDFlib instance