Page 1 of 1

PDF Page coordinate system

Posted: Wed Sep 24, 2014 8:50 am
by quietstorm
Hi all,
I have a question about coordinate system of the PDF documents. I know it's bottom-left based like a normal math coordinate system and stuff, but I'd like to know if there's a way to get the current page width/height using PDF XChange ActiveX Viewer.

As far as I've seen up to now, there's no way, not even using JavaScript calls.
Am I wrong? Any help appreciated, thanks.

Fabrizio

Re: PDF Page coordinate system

Posted: Thu Sep 25, 2014 1:47 pm
by Tracker Supp-Stefan
Hello Fabrizio,

This should help:
http://help.tracker-software.com/DEV/de ... xactphrase

Regards,
Stefan

Re: PDF Page coordinate system

Posted: Thu Sep 25, 2014 1:54 pm
by Serg - Tracker Dev
The PDF-XChange Viewer ActiveX SDK Help contain sample for get width of first page:

Code: Select all

...
DoVerb("Documents[#4095].Pages[0].Width", "get",
 DataIn, DataOut, 0);
// or:
GetProperty("Documents[#4095].Pages[0].Width", DataOut, 0);
// or:
GetDocumentProperty(4095, "Pages[0].Width", DataOut, 0);
...
You can find it at page #161 of Reference

Re: PDF Page coordinate system

Posted: Thu Oct 16, 2014 10:52 pm
by Vasyl-Tracker Dev Team
Hi, Fabrizio.

Please note: the pdf-page can be rotated in 90, 180, 270 degrees, also end-user may use 'Rotate View' feature that rotates all pages additionally.
Pages[x].Width, Pages[x].Height - returns width/height in points (1/72 inch) of normal, non-rotated page.
You may look also for methods: Pages[x].PagePointsToViewPoints and Pages[x].ViewPointsToPagePoints.

HTH.