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
PDF Page coordinate system
Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan
- Tracker Supp-Stefan
- Site Admin
- Posts: 17824
- Joined: Mon Jan 12, 2009 8:07 am
- Location: London
- Contact:
Re: PDF Page coordinate system
Hello Fabrizio,
This should help:
https://help.pdf-xchange.com/DEV/de ... xactphrase
Regards,
Stefan
This should help:
https://help.pdf-xchange.com/DEV/de ... xactphrase
Regards,
Stefan
-
- User
- Posts: 14
- Joined: Wed Sep 17, 2014 7:40 am
- Location: Ukraine
Re: PDF Page coordinate system
The PDF-XChange Viewer ActiveX SDK Help contain sample for get width of first page:
You can find it at page #161 of Reference
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);
...
- Vasyl-Tracker Dev Team
- Site Admin
- Posts: 2352
- Joined: Thu Jun 30, 2005 4:11 pm
- Location: Canada
Re: PDF Page coordinate system
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.
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.
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.