Docs PDFiumPas

CharacterOrigin Propriedade

Esta entrada API preserva identificadores, assinaturas, blocos de código e termos PDF em sua forma original.
Componente: TPdf  ·  Unidade: PDFium
Acesso indexado somente leitura a the origin (baseline-left anchor) of the character in PDF user-space points.

Sintaxe

property CharacterOrigin[CharIndex: Integer]: TPdfPoint; // read only

Descrição

Acesso indexado somente leitura a the origin (baseline-left anchor) of the character in PDF user-space points. O intervalo válido é 0 .. CharacterCount - 1 para a página atual; passar um índice fora do intervalo lança 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).

Todas as coordenadas estão em pontos do espaço do usuário do PDF, com a origem no canto inferior esquerdo. Use PdfView1.PointsToScreen or your own coordinate transform when overlaying on a VCL canvas.

Parâmetros

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

Observações

Exemplo

var
  I: Integer;
begin
  for I := 0 to Pdf1.CharacterCount - 1 do
    P := Pdf1.CharacterOrigin[I]; // origin of glyph I, in points
end;

Consulte também

CharacterCount, Charcode, CharacterRectangle, Character, TextPage