PDFium Component Docs

CharacterRectangle Özellik

Bu API girdisi tanımlayıcıları, imzaları, kod bloklarını ve PDF terimlerini özgün biçiminde korur.
Bileşen: TPdf  ·  Birim: PDFium
Şuna salt okunur dizinli erişim: bounding rectangle of the character in PDF user-space coordinates (origin bottom-left, in points).

Söz dizimi

property CharacterRectangle[CharIndex: Integer]: TPdfRectangle; // read only

Açıklama

Şuna dizinli salt okunur erişim: bounding rectangle of the character in PDF user-space coordinates (origin bottom-left, in points). The valid range is 0 .. CharacterCount - 1 geçerli sayfa için; aralık dışı bir dizin geçirmek şu hatayı üretir 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).

Tüm koordinatlar, orijini sol alt köşede olan PDF kullanıcı alanı noktalarıyla verilir. Şunu kullanın PdfView1.PointsToScreen or your own coordinate transform when overlaying on a VCL canvas.

Parametreler

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

Notlar

Örnek

var
  I: Integer;
begin
  for I := 0 to Pdf1.CharacterCount - 1 do
    R := Pdf1.CharacterRectangle[I]; Canvas.TextOut(Round(R.Left), Round(R.Top), Pdf1.Character[I]);
end;

Ayrıca bkz.

CharacterCount, Charcode, Character, TextPage