Skip to main content
Participant
August 24, 2018
Question

Print OnClick event

  • August 24, 2018
  • 4 replies
  • 526 views

How do I capture the print button OnClick event so I can see if an user has printed something?

This topic has been closed for replies.

4 replies

try67
Community Expert
Community Expert
August 24, 2018

There's no global listener in Acrobat that is triggered each time a file is printed, only a doc-level event.

Inspiring
August 24, 2018

I think there may be some privacy issues when a program notifies a different user of a given user's action. Acrobat does not allow silent printing without some approval by the user or IT admin by having to install a plain language text that has some special scripting code. This has been done because it is possible to print any document through a network or the internet to anywhere in the universe (note that satellites transmit and receive computer data from earth stations). I would expect that the sending of a notification would fall into the same control since this type of action falls into the communications monitoring technique of "Traffic Analysis". Traffic Analysis was a major contributor to the U.S. Navy's winning of the battle of Midway in World War II and the breaking of the German military Enigma Machine messages by the code breakers at Benchley Park.

Legend
August 24, 2018

There is a WillPrint event. There's no click - print event and printing, after all, may not involve any kind of click.

AnandSri
Community Manager
Community Manager
August 24, 2018

Hello Chriss,

Greetings from Adobe.

For the Print on Click event and Custom Printing option, you can add scripts to PDFs. For this, you can contact our Acrobat JavaScript expert on Adobe forums and they will assist you further JavaScript

For more information about the scripts, you can refer to Adobe articles Applying actions and scripts to PDFs

Adobe - Acrobat Developer Center | Adobe Developer Connection

Acrobat DC SDK Documentation

Thanks,

Anand Sri.

[Moving from Acrobat Reader to JavaScript ]