Get current page rotation of document

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

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

Post Reply
User avatar
MartinCS
User
Posts: 153
Joined: Thu Apr 07, 2011 10:01 am
Contact:

Get current page rotation of document

Post by MartinCS »

Hi Tracker Team,

I'm looking for a function to get the current page rotation of an opened document. Unfortunately, I'm not able to find a function in your 'PDF-XChange Viewer ActiveX SDK' documentation.

What I want to do is to open a document (could be a mulitpage document), set the page rotation (which I'm doing with the usefull functions 'RotateSelectedPages90' etc.) and check if the rotation of the whole document has changed after the document has been closed. I just need to know if the user has changed the rotation of the document.

Is this possible?

Thank you for you help!

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

Re: Get current page rotation of document

Post by Tracker Supp-Stefan »

Hello Martin,

There is a JS function getPageRotation - which should do exactly what you need.
Please check our Viewer SDK help file for how to call and use JS, and make sure to also check the
JS API for Acrobat Reference from Adobe - we do support more than 95% of the methods described there.

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

Re: Get current page rotation of document

Post by Vasyl-Tracker Dev Team »

Also you may use the (pseudocode):

Code: Select all

int angle = 0;
pdfViewer.GetDocumentProperty(docId, "Pages[0].Rotation", out angle, 0);
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