I've been trying to get the exact size of a PDF document without success.
My test document is A4 (210mm x 297mm) which is 595.28pt x 841.89pt.
When I do :
Code: Select all
identify -format "%[fx:w]x%[fx:h]" testpdf.pdf
Code: Select all
595x842
Code: Select all
identify -format "%@" testpdf.pdf
Code: Select all
342x54+133+239
Code: Select all
identify -verbose testpdf.pdf
Code: Select all
Properties:
create-date: 2010-08-22T19:02:05+00:00
modify-date: 2010-08-22T19:02:05+00:00
pdf:HiResBoundingBox: 595.28x841.89+0+0
pdf:Version: PDF-1.3
signature: bb3128cf288b1737dc3a29250cef1da8cb14302dd4e9e7f75c47901d77b62f83
I need to be able to upload my PDF document and automatically get the exact PDF size. Can I get the HiResBoundingBox value using identify ?
Thank you !