property Charcode[CharIndex: Integer]: Cardinal; // read only
Indexed read-only access to the Unicode code point (UCS-4) of the character at the given 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).
All coordinates are in PDF user-space points with the origin at the bottom-left. Use PdfView1.PointsToScreen or your own coordinate transform when overlaying on a VCL canvas.
| CharIndex | Zero-based character index in the current page (0 .. CharacterCount - 1). |
CharacterCount resets to 0 when Active is False or no page is open.CharacterGenerated).
var
I: Integer;
begin
for I := 0 to Pdf1.CharacterCount - 1 do
ShowMessage(IntToHex(Pdf1.Charcode[I], 4)); // e.g. 4E2D for δΈ
end;