Skip to main content
Participant
Nov 21, 2017 8:51 AM UTC
Question

Delete or mark the source PDF using javascript

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 is closed to new replies. Start a new post to keep the conversation going.

3 replies

Legend
Nov 21, 2017 12:02 PM UTC

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

Translate
Joel Geraci
Community Expert
Community Expert
Nov 21, 2017 4:28 PM UTC

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

Translate
try67
Community Expert
Community Expert
Nov 21, 2017 9:02 AM UTC

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.

Translate