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.
Event/Notification when a document has been rotated
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
-
- User
- Posts: 34
- Joined: Wed Oct 09, 2013 5:58 pm
-
- Site Admin
- Posts: 19868
- Joined: Mon Jan 12, 2009 8:07 am
Re: Event/Notification when a document has been rotated
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
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
-
- User
- Posts: 34
- Joined: Wed Oct 09, 2013 5:58 pm
Re: Event/Notification when a document has been rotated
Hi Stefan,
I am in the the rotation of the view that doesn't alter the document itself.
Thanks.
I am in the the rotation of the view that doesn't alter the document itself.
Thanks.
-
- Site Admin
- Posts: 19868
- Joined: Mon Jan 12, 2009 8:07 am
Re: Event/Notification when a document has been rotated
Thanks Daniel,
I am checking with a colleague from the dev team now and we will post further info a bit later.
Regards,
Stefan
I am checking with a colleague from the dev team now and we will post further info a bit later.
Regards,
Stefan
-
- Site Admin
- Posts: 2445
- Joined: Thu Jun 30, 2005 4:11 pm
Re: Event/Notification when a document has been rotated
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.
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
-
- User
- Posts: 34
- Joined: Wed Oct 09, 2013 5:58 pm
Re: Event/Notification when a document has been rotated
That works perfectly, thanks! 

-
- Site Admin
- Posts: 5223
- Joined: Tue Jun 29, 2004 10:34 am
Re: Event/Notification when a document has been rotated

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
Best regards
Tracker Support
http://www.tracker-software.com