Skip to content

Why is the Y-axis inverted? #650

Answered by EliotJones
Criper98 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Criper98 this reflects the standard coordinate system from the PDF spec, it's a bit annoying since it is different from almost everything else but is typical for how PDF coordinates work:

The positive x axis extends horizontally to the right and the positive y axis vertically upward, as in standard mathematical prac-
tice (subject to alteration by the Rotate entry in the page dictionary). The length of a unit along both the x and y axes is set by the UserUnit entry (PDF 1.6) in the page dictionary (see Table 3.27). If that entry is not present or supported, the default value of 1 ⁄ 72 inch is used. This coordinate system is called default user space.

Replies: 1 comment

Comment options

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