property Charcode[CharIndex: Integer]: Cardinal; // read only
指定 index の character に対応する Unicode code point (UCS-4) を返す indexed read-only access です。有効範囲は 0 .. CharacterCount - 1 現在ページに対するものです。範囲外のインデックスを渡すと 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).
すべての座標は PDF ユーザースペースのポイントで、原点は左下です。次を使って 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;