Event/Notification when a document has been rotated

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

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

DanielG
User
Posts: 34
Joined: Wed Oct 09, 2013 5:58 pm

Event/Notification when a document has been rotated

Post by DanielG »

Hello,

Is there an event or notification when a document is rotated? I'm looking for a way to execute some code when a document has been rotated.
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19868
Joined: Mon Jan 12, 2009 8:07 am

Re: Event/Notification when a document has been rotated

Post by Stefan - PDF-XChange »

Hello Daniel,

Do you mean actual rotation of pages that flags the file as modified, or the rotation of the view that doesn't alter the document itself?

Regards,
Stefan
DanielG
User
Posts: 34
Joined: Wed Oct 09, 2013 5:58 pm

Re: Event/Notification when a document has been rotated

Post by DanielG »

Hi Stefan,

I am in the the rotation of the view that doesn't alter the document itself.

Thanks.
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19868
Joined: Mon Jan 12, 2009 8:07 am

Re: Event/Notification when a document has been rotated

Post by Stefan - PDF-XChange »

Thanks Daniel,

I am checking with a colleague from the dev team now and we will post further info a bit later.

Regards,
Stefan
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2445
Joined: Thu Jun 30, 2005 4:11 pm

Re: Event/Notification when a document has been rotated

Post by Vasyl - PDF-XChange »

You need to capture event:

Code: Select all

youreventhander OnEvent(type, name...)
{
    if (type == PXCVA_OnPropertyChanged AND StrStr(name, ".Pages.DisplayRotation")) // example: name == "Documents[#1234].Pages.DisplayRotation"
    {
         int val = 0; 
         GetProperty(name, out val);
    } 
}
PDF-XChange Co. LTD (Project Developer)

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
DanielG
User
Posts: 34
Joined: Wed Oct 09, 2013 5:58 pm

Re: Event/Notification when a document has been rotated

Post by DanielG »

That works perfectly, thanks! 8)
User avatar
John - Tracker Supp
Site Admin
Posts: 5223
Joined: Tue Jun 29, 2004 10:34 am

Re: Event/Notification when a document has been rotated

Post by John - Tracker Supp »

:)
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com