PDFium Component Docs

PageWordBoxes method

Component: TPdf  ·  Unit: PDFium
Vraća TPdfWordBox zapise za riječi na trenutačnoj TPdf stranici s rasponima znakova i pravokutnicima u prostoru stranice

Syntax

function PageWordBoxes: TPdfWordBoxes;

Return Value

TPdfWordBoxes

Description

Okviri riječi dijele tekst stranice po razmacima, tabulatorima, prijelomima redakae breaks, and NBSP characters

The component methods also union FPDFText_GetCharBox rectangles into one page-space TPdfRectangle for each word

Remarks

Example

var Words: TPdfWordBoxes;
  Rects: TPdfRectangles;
begin
  Words := Pdf1.PageWordBoxes;
  if Length(Words) > 0 then
  begin
    SetLength(Rects, 1);
    Rects[0] := Words[0].Rect;
    PdfView1.SetReadingHighlight(Rects, Words[0].Page);
  end;
end;

See Also

Text, SetReadingHighlight