Skip to main content
miguelp22027494
Participant
February 16, 2017
Question

Page Counter

  • February 16, 2017
  • 2 replies
  • 734 views

Hi, how can I create an action, count the number of times a document is printed, and show in the document.

For example, I want to print a document 10 times and the document is of 1 page, So each page must exit with the numbering 1/10, 2/10, 3/10 ...

Thank you

This topic has been closed for replies.

2 replies

Joel Geraci
Community Expert
Community Expert
February 16, 2017

You can't reliably do this. Even with a script, the user can easily change the number of copies to print in the print dialog and Acrobat never gets notified.

try67
Community Expert
Community Expert
February 16, 2017

You can do it with a simple loop. Let's say the counter is a text field called PrintCounter. You can use this code to do it:

var max = 10;

for (var i=1; i<=max; i++) {

    this.getField("PrintCounter").value = i + "/" + max;

    this.print();

}

miguelp22027494
Participant
February 17, 2017

Ok. Now I have this script and I want to add this counter so that I can see the number printed on the document. How can i include it.

I want to delete the date and time and I only have "Page 1/X".

Thank You.

try67
Community Expert
Community Expert
February 17, 2017

You just need to create a field called "PrintCounter". If you want you can then duplicate it to all the pages in the file.

You don't need to use a script for it, though.