TPDFlibPageElement
Data Types
Description
TPDFlibPageElement is a unified record structure carrying metadata for structured page elements (text blocks, raster images, and vector paths) extracted from PDF documents.
Syntax
Delphi
type TPDFlibPageElement = record
Kind: TPDFlibPageElementKind;
Page: Integer;
Left: Double;
Top: Double;
Right: Double;
Bottom: Double;
Text: WideString;
FontName: WideString;
FontSize: Double;
ImageID: Integer;
PointCount: Integer;
IsClosed: Boolean;
PaintOp: WideString;
end;Fields
| Kind | The structural classification specified by TPDFlibPageElementKind. |
|---|---|
| Page | The 1-based page index where the element is located. |
| Left | The horizontal offset coordinate of the bounding box. |
| Top | The vertical offset coordinate of the bounding box. |
| Right | The right edge boundary coordinate of the bounding box. |
| Bottom | The bottom edge boundary coordinate of the bounding box. |
| Text | The Unicode text content string (valid only when Kind is ekText). |
| FontName | The font name referenced by the text block (valid only when Kind is ekText). |
| FontSize | The font size in points (valid only when Kind is ekText). |
| ImageID | The internal raster image resource handle, usable with image selection APIs (valid only when Kind is ekImage). |
| PointCount | The count of construction path vector nodes (valid only when Kind is ekPath). |
| IsClosed | Specifies whether the path was closed (valid only when Kind is ekPath). |
| PaintOp | The PDF paint operator character that paints this path (e.g. f for fill, S for stroke, or B for both; valid only when Kind is ekPath). |