Name
pdf.GetCharOrigin -- get origin of character (V1.1)
Synopsis
x, y = pdf.GetCharOrigin(id, page, idx)
Function
This function can be used to get the origin of the character at the index specified by idx (starting at 0).

The page to use must be specified in the page argument. It must be a number in the range of 1 to the total number of pages in the document and the page 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
character index to use (starting from 0)
Results
x
x position of origin
y
y position of origin

Show TOC