×
Menu
Index

PageBox

 
 
ยท PageBox() => The method PageBox() will return the dimensions of the current page.
 
this will return an array of 2 elements, the width and the height of the current page. Sizes will be returned in PDF units (1/72 of a inch), that can be converted to GRA_PU_LOMETRIC using the formula:
 
y GRA_PU_LOMETRIC = x PDF Units / 72 * 254
 
Example: 595 PDF units = ( 594 / 72 * 254 ) = 2100 GRA_PU_LOMETRIC