These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Object coordinates on PDF

phorsley
Registered: Nov 2 2007
Posts: 35

We have a PDF suppplied by a customer which has been created in Acrobat 9 possibly
from excel. The problem is that the y coordinates for the text is -5mm as shown in pitstop, yet the text i more like +5mm, this is causing a problem with our online system where it cuts off the edge of the text, I have checked for any hidden items of which there are none, I can't seem to figure this one out.
 
I hope someone has some answers.
 
thanks in advance
 
Paul

My Product Information:
Acrobat Standard 9.4.2, Macintosh
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
You can move page boundaries with scripting.

Have you read this article?
http://acrobatusers.com/tutorials/2006/page_bounds

Do a search on this website for "Page Coordinates".



Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

phorsley
Registered: Nov 2 2007
Posts: 35
But why do we get minus coordinates when there is nothing else on the page?
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
The coordinates are determined by the CropBox and the Media box of the page. Coordinates don't automatically start at 0,0. In JavaScript the coordinates are transformed to create two convenient coordinate spaces using the Crop box and the media box as the references. I don't know what pitstop is doing, but I suspect, since it's a print oriented tool, that it's using the Media box as a reference. But in the scheme of things it doesn't matter too much. All coordinates are relative.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script