> My question is, how can I/do I get the geometric bounds of the PDF before it is placed?My question is, why do you need it? if you're placing the PDF, you'll know soon enough. And there's no guarantee that all pages will be the same size anyway.
what I am trying to do is get the geometric bounds before placing the PDF so I can use the "place point" command to place the image in a certain area, rather than placing the image, then getting the bounds, then moving my item to it's location.
1 person found this helpful
Well you can get the dimensions of the first page of a PDF using the shell command mdls. So something like:
do shell script "mdls -name kMDItemPageHeight -name kMDItemPageWidth "& quoted form of POSIX path of theFile
and then parse the result. But I'm not sure it's going to be worth the extra effort.
thanks for that Shane, ill look into your suggestion