Skip to content

what is the width of a A4 page in pyhanko box? #109

Discussion options

You must be logged in to vote

As usual, the answer is "it depends" ;). PyHanko writes those values to the PDF as-is. Typically that means that you're working in default user space units. Theoretically those are viewer-dependent, but by convention those are in points, so 1 unit = 1/72th of an inch. Again assuming no funny business with transformed coordinates, the origin (0,0) is at the bottom left (i.e. PDF uses the Cartesian convention).

PyHanko doesn't care about page sizes at all, FWIW. It'll happily draw stuff out of bounds without complaining. Page size is defined by the page's MediaBox (or CropBox) entry, but pyHanko doesn't process these values.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Vishwamithra37
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants