I'm using applescript and I have this code
tell application "Adobe Acrobat Professional"
set mbox to media box of page 1 of document 1
end tell
it gives me the dimensions in "PDF space" whatever that is. What I'm trying to do is find the page size after a pdf has been cropped. You can't get it from the metadata, at least not using applescript.
So when I ask for the media box, say I get a list (left, top, bottom, right) {0.0, 720.0, 720, 0.0} this is for a doc that's 10" by 10". I crop the pdf to 9.5" by 9.5". I ask for the crop box and I get a list {18.0, 720.0, 720.0, 18.0}. How would I translate that into 9.5" by 9.5"? What is PDF space?
I looked at the API reference and that's cursory at best.
Thanks.
This article at JavaScript Corner explains PDF page boundaries-
http://www.acrobatusers.com/tech_corners/javascript_corner/tips/2006/page_bounds/
Hope this helps,
Dimitri
WindJack Solutions
www.pdfscripting.com
www.windjack.com
Dimitri Munkirs
WindJack Solutions
pdfscripting.com