PDFiumVCL Docs

CharacterAngle property

이 API 항목은 식별자, 시그니처, 코드 블록, PDF 용어를 원래 형태로 유지합니다.
Component: TPdf  ·  Unit: PDFium
Read-only indexed access to the rotation angle of the character in radians, taking the page CTM into account.

Syntax

property CharacterAngle[CharIndex: Integer]: Single; // read only

Description

Indexed read-only access to the rotation angle of the character in radians, taking the page CTM into account. 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.

Parameters

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

Remarks

Example

var
  I: Integer;
begin
  for I := 0 to Pdf1.CharacterCount - 1 do
    Angle := RadToDeg(Pdf1.CharacterAngle[I]);
end;

See Also

CharacterCount, Charcode, CharacterRectangle, Character, TextPage