Name
pdf.GetCharBox -- get bounding rectangle of character (V1.1)
Synopsis
left, top, right, bottom = pdf.GetCharBox(id, page, idx)
Function
This function can be used to get the bounding box of the character at index idx on the page specified by page. Note that character indices start at 0 whereas page indices start at 1.

The page specified in the page argument must have been previously loaded using pdf.LoadPage() with the text argument set to True. The PDF document specified by id must have been previously opened using pdf.OpenDocument().

Inputs
id
identifier of the PDF document to use
page
page number to use (starting from 1)
idx
index of character whose bounding rectangle to retrieve (starting from 0)
Results
left
left boundary
top
top boundary
right
right boundary
bottom
bottom boundary

Show TOC