I have developed a very nice program which uses a combination of "cmd.document.cropPages," "op.document.extractPages," "op.document.insertPages," and ""op.document.deletePages" to extract a set of new documents from a large PDF document with the ability to use only a portion of a page in the original document as the first and / or last page of one of the newly created documents. The website documentation has been a tremendous aid in putting this all together but there is one condition I can't figure how to check.
How would I determine that an end user clicked on the "Cancel" button rather than the "OK" button on the "Crop Pages" dialog screen?
Thanks,
Paul
Detecting "Cancel" on "Crop Pages" dialog
Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan
Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.
When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.
When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
-
- User
- Posts: 36
- Joined: Fri Jan 05, 2018 8:36 pm
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
Re: Detecting "Cancel" on "Crop Pages" dialog
Hello Paul,
If the user clicks OK in the Crop Pages dialog, then the op.document.cropPages operation should take place afterwards.
Basically what you can do is to catch the https://sdkhelp.pdf-xchange.com/vi ... oreExecute event and see whether it's a Crop Pages operation. If so, then continue with your logic after the operation execution.
Cheers,
Alex
If the user clicks OK in the Crop Pages dialog, then the op.document.cropPages operation should take place afterwards.
Basically what you can do is to catch the https://sdkhelp.pdf-xchange.com/vi ... oreExecute event and see whether it's a Crop Pages operation. If so, then continue with your logic after the operation execution.
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ