THPDFDisplayListObject Record
Classifies one content-stream object in a compiled page display list with its operator and user-space bounds
Declaration
THPDFDisplayListObject= record
Kind: THPDFDisplayListObjectKind;
OperatorIndex: Integer;
OperatorName: AnsiString;
Bounds: THPDFRectangle;
HasBounds: boolean;
end;
Unit
HPDFPageRenderer
Fields
| Field | Purpose |
|---|---|
Kind | Object class: dlokPath, dlokText, dlokImage, dlokShading, or dlokUnknown |
OperatorIndex | Index of the generating operator within the display list operator sequence |
OperatorName | Operator text recorded while building the object index, such as re, Tj, or Do |
Bounds | User-space bounding box computed from the current transform while the object was painted |
HasBounds | False when no reliable bounds could be derived for this object |
Usage notes
- Read entries with
THPDFPageDisplayList.GetObject;ObjectCountgives the valid index range QueryObjectIndexesreturns the indexes of objects whose bounds intersect a rectangle, ready for hit testing- Objects are built once when the display list is compiled, so bounds stay stable across renders at different DPI values