In PDF format, pages are considered a two-dimensional space defined by two coordinates (X, horizontal axis, and Y, vertical axis). It starts at the bottom left corner (XY point "0,0
") and its dimensions progress upwards and to the right. This way of describing space is an inheritance from PostScript language.
Thus, if we move something by increasing the magnitude of its coordinates, what we are doing is moving it up and to the right.
Following this logic, when we define a quadrangular object with two pairs of coordinates, the first pair corresponds to the lower left corner and the second to the upper right corner (as shown in the drawing above). Of both coordinates, the first value is always the horizontal (X
).
This coordinate system is the "User Space
". The units into which this space is divided are called "points
" and there are 72 points per inch (1 inch is 2.54 cm). From PDF level 1.6 onwards, customized measurements ("User Units
") can be used.
The outer boundary of the page is the "MediaBox
" and its lower left corner should be the coordinate point "0,0
".
[© Gustavo Sánchez Muñoz, 2024] Gustavo Sánchez Muñoz (also identified as Gusgsm) is the author of the content of this page. Its graphic and written content can be shared, copied and redistributed in whole or in part without the express permission of its author with the only condition that it cannot be used for directly commercial purposes (that is: It cannot be resold, but it can form part as reasonable quotations in commercial works) and the legal terms of any derivative works must be the same as those expressed in this statement. The citation of the source with reference to this site and its author is not mandatory, although it is always appreciated.