Skip to main content
Participant
November 21, 2017
Question

Delete or mark the source PDF using javascript

  • November 21, 2017
  • 2 replies
  • 336 views

Is it possible to embed javascript in a DPF so that when the print action happens it either (a) Closed the PDF which is being printed and deletes the file or (b) Watermarks the PDF and closed Adobe thus saving/overwriting the PDF which was printed?

This topic has been closed for replies.

2 replies

Legend
November 21, 2017

But your aim, whatever it is, is easily thwarted by the user copying the file first.

Joel Geraci
Community Expert
Community Expert
November 21, 2017

... or opening it in just about any PDF viewer other the ones created by Adobe.

try67
Community Expert
Community Expert
November 21, 2017

A) Close the file: Yes. Delete the file: No.

B) Add a watermark: Yes. Save the file: Only if a special script is installed on the user's local machine. Close Acrobat: No.