PDF Page coordinate system

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Sean - Tracker, Chris - Tracker Supp, Tracker Supp-Stefan, Ivan - Tracker Software

Post Reply
quietstorm
User
Posts: 25
Joined: Wed Feb 10, 2010 11:37 am

PDF Page coordinate system

Post by quietstorm » Wed Sep 24, 2014 8:50 am

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

User avatar
Tracker Supp-Stefan
Site Admin
Posts: 13424
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: PDF Page coordinate system

Post by Tracker Supp-Stefan » Thu Sep 25, 2014 1:47 pm

Hello Fabrizio,

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

Regards,
Stefan

Serg - Tracker Dev
User
Posts: 14
Joined: Wed Sep 17, 2014 7:40 am
Location: Ukraine

Re: PDF Page coordinate system

Post by Serg - Tracker Dev » Thu Sep 25, 2014 1:54 pm

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

User avatar
Vasyl-Tracker Dev Team
Site Admin
Posts: 1923
Joined: Thu Jun 30, 2005 4:11 pm
Location: Canada

Re: PDF Page coordinate system

Post by Vasyl-Tracker Dev Team » Thu Oct 16, 2014 10:52 pm

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.
Vasyl Yaremyn
Tracker Software Products
Project Developer

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.

Post Reply