Counter for prints of a pdf file

New Here ,
May 01, 2018

Copy link to clipboard

Copied

I would like to have a javascript keep a rolling counter for the amount of times a file gets printed.  This would not reset on open of the file, but just continue from the last number of the print.

Is there any way of doing this with JS?

Any help would be appreciated.

thanks

TOPICS
Acrobat SDK and JavaScript

Views

95

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Counter for prints of a pdf file

New Here ,
May 01, 2018

Copy link to clipboard

Copied

I would like to have a javascript keep a rolling counter for the amount of times a file gets printed.  This would not reset on open of the file, but just continue from the last number of the print.

Is there any way of doing this with JS?

Any help would be appreciated.

thanks

TOPICS
Acrobat SDK and JavaScript

Views

96

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
May 01, 2018 0
Most Valuable Participant ,
May 01, 2018

Copy link to clipboard

Copied

Where would you plan to keep the counter? If it's in the file, can you guarantee the user will save the file after each print?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 01, 2018 0
Adobe Community Professional ,
May 01, 2018

Copy link to clipboard

Copied

There's no reliable way to do this using JavaScript. JavaScript could be turned off in the Adobe products or the PDF could be opened in some other viewer. Your best bet is to use something FileOpen instead.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 01, 2018 0
try67 LATEST
Most Valuable Participant ,
May 01, 2018

Copy link to clipboard

Copied

Even if it did work, someone could print 100 copies of the file with a single print command, and the script will be none the wiser. It will only count it as a single print. In other words, it's quite a useless feature.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 01, 2018 0