PDFium Delphi Component Docs

Character property

Component: TPdf  ·  Unit: PDFium
Read-only indexed access to the UTF-16 code unit (WideChar) of the character at the given index

Syntax

property Character[Index: Integer]: WideChar; // read only

Description

Indexed read-only access to the WideChar at the given zero-based character index. The valid range is 0 .. CharacterCount - 1 for the current page; passing an out-of-range index raises EPdfError

Characters are returned in their logical reading order — the order in which PDFium parsed the content stream — not necessarily in visual order (right-to-left scripts may appear reversed)

Parameters

IndexZero-based character index in the current page (0 .. CharacterCount - 1)

Remarks

Example

var
  I: Integer;
begin
  for I := 0 to Pdf1.CharacterCount - 1 do
    Memo1.Text := Memo1.Text + Pdf1.Character[I];
end;

See Also

CharacterCount, Charcode, CharacterRectangle, TextPage