Answered
I'm creating a dynamic stamp the prompts the user for input using a custom dialog, which contains an OK and Cancel button. (The situation would be the same if I were using an app.response.) My question is can the placement of the stamp be canceled if the user presses the Cancel button, and if so, how? I've tried setting event.rc and event.source.forReal to false, but the stamp still gets placed.
Funny, we had the same question asked from someone else recently. Unfortunately, a stamp operation cannot be aborted from within a stamp script. The stamp is applied no matter what the stamp script does. Stamp scripts operate within a narrow context. However, if the stamp is applied from an automation script, then the automation script can handle the abort by either not applying the stamp, or deleting the stamp after the operation is complete, depends on how the automation script operates.
Hope this helps,
Dimitri
Dimitri Munkirs
WindJack Solutions
pdfscripting.com