Wraps FPDFText_CountRects + FPDFText_GetRect. Returns the
rectangular regions occupied by the characters in
[start_char, start_char + char_count) on page. Multi-line text
produces one rectangle per line; rotated or skewed text produces
tighter axis-aligned rectangles per glyph cluster.
Arguments
- page
A
pdfium_pagefrompdf_page_load().- start_char
One-based character index (matches
pdf_text_chars()$char_index).- char_count
Number of characters to cover. Use
-1Lto include everything fromstart_charto the end of the page.
Value
A tibble with columns left, top, right, bottom in
PDF user-space points. May have 0 rows if PDFium reports no
visible rectangles.
See also
pdf_text_chars() for per-character geometry.