Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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();
}
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
yes I understand, but how can I print this number on the sheets
Copy link to clipboard
Copied
The value of the text field will appear on the printed copy.
Copy link to clipboard
Copied
Hello, after many tests I still can not make me appreciate the number of copies in printed documents. I copied the code into an action like "document javascripts", but when printing the document, no print number information appears. What I can do?.
Thank you.
Copy link to clipboard
Copied
Can you share the file, via Dropbox, Google Drive, etc.?
Copy link to clipboard
Copied
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.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now