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

ElementIDOpaque handle accepted by page-element mutation, effective clipping-path and marked-content query APIs
KindText, image, or path classification
PageOne-based page number
ContentLayerOne-based content layer
FirstInstructionFirst zero-based instruction in the inclusive source range
LastInstructionLast zero-based instruction in the inclusive source range
Left, Top, Right, BottomAxis-aligned bounds in the current page coordinate system
Text, FontName, FontSizeText metadata for ekText
ImageIDImage resource handle for ekImage
PointCount, IsClosed, PaintOpPath metadata for ekPath

Lifetime

ElementID remains valid until the next enumeration or successful page-element mutation on the same TPDFlib instance