left, top, right, bottom = pdf.GetCharBox(id, page, idx)
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().