Skip to main content
Participant
1월 8, 2025 8:07 오전 UTC
공지사항

Adobe PDF- Want to Print Disable until validation is done

We would like to explore the option of implementing a new document action that triggers the code to validate the necessary mandatory fields prior to printing the form.

 

Validate and Print function is working perfectly. But when we do ctrl + P, then this validation don't work. How to invoke validation before ctrl+P or print symbol on the top.

 

Let me knwo any solution.

3 답변

PDF Automation Station
Community Expert
Community Expert
1월 8, 2025 12:11 오후 UTC

As already described, you can't prevent printing but you can add a warning with willPrint script.  You could have a big "VOID" watermark that does not show on the page but prints unless the fields are validated.  All of these solutions, however,  assume the user is printing the form with a PDF viewer that supports these scripts and does not have JavaScript disabled.

번역
try67
Community Expert
Community Expert
1월 8, 2025 9:45 오전 UTC

You can't stop printing entirely, but you can force the printed copy to show an error message, or even to print without any of the values entered into the fields, unless all required fields are filled-in.

You can do that using this (paid-for) tool I've developed: https://www.try67.com/tool/acrobat-validate-required-fields-before-printing-or-saving

 

번역
JR Boulay
Community Expert
Community Expert
1월 8, 2025 9:23 오전 UTC

Fortunately, you can't do this, as a user may have many good reasons for wanting to print a partially completed form.

What you can do is add an alert when saving or printing with a message such as: Any incomplete or illegible document will be returned without processing.

번역
Acrobate du PDF, InDesigner et Photoshopographe