For scripting I need to get the page dimensions of a PDF file (in mm).
pdfinfo just prints it in 'pts', e.g.:
Page size: 624 x 312 pts
What should I use?
Or what unit is 'pts' anyway - in case I want to convert them ...
|
For scripting I need to get the page dimensions of a PDF file (in mm).
What should I use? Or what unit is 'pts' anyway - in case I want to convert them ... |
|||||||
|
|
Not the easiest way, but given
to find the page size in inches (this may yield several results if the PDF uses different dimensions) and then convert the numbers like this:
Meaning that 8.26 inches are 209.9 mm (I used an A4 PDF for this). |
|||
|
|
|
The 'pts' unit used by
The manual to |
|||||||
|