THPDFDisplayListObject Record
Classifies a single 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 in the display list operator sequence |
OperatorName | Operator text recorded whilst building the object index, such as re, Tj, or Do |
Bounds | User-space bounding box computed from the current transform whilst the object was painted |
HasBounds | False when no reliable bounds could be worked out 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, primed for hit testing- Objects are built once when the display list is compiled, so bounds remain stable across renders at different DPI values