x, y = pdf.PageToDevice(id, page, startx, starty, sizex, sizey, rotate, pagex, pagey)
pagex
and pagey
to screen coordinates.
The rotate
argument can be used to specify the page orientation. This can be set
to the following special values:
0:
1:
2:
3:
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(). The PDF document specified by id
must have been previously opened using pdf.OpenDocument().
The page coordinate system has its origin at the left-bottom corner of the page, with the X-axis on the bottom going to the right, and the Y-axis on the left side going up. Note that this coordinate system can be altered when you zoom, scroll, or rotate a page, however, a point on the page should always have the same coordinate values in the page coordinate system.
The device coordinate system is device dependent. For screen devices, its origin is at the left-top corner of the window.