Copy link to clipboard
Copied
Hi,
I want to display a warning message in pdf form when user press ctrl+p or use file>print. I use this code
if(event.ctrlKey && event.keyCode == 80) {
app.alert("You pressed Ctrl+P");
}
in document javascript and in a text field but it does not work. I have created a print button in pdf which display the message (if and only if you use button for printing). I want the same message to appear when use different printing option.
Thanks
Copy link to clipboard
Copied
Not possible. What you can do, though, is attach a script to the file's Will Print event, but it will only execute once the file is actually printed, not when the Print dialog is showing.