Repeat action
Is there a way to repeat an action in the action wizard? I am just trying to set it up so that it prints the same open file repeatedly.
Thanks in advance for any help.
Is there a way to repeat an action in the action wizard? I am just trying to set it up so that it prints the same open file repeatedly.
Thanks in advance for any help.
Thank you so much for your responses!
Yes, I meant to say javaScript, not html. We have a "litho" number that marks each page of a document (the document is a questionnaire for people to fill out). We want each printed copy of that document to have a unique litho number, so the java script we currently have does that, but it just automatically makes the litho go up a number every time you print, but we need like 10,000 copies and don't want to sit there and hit print 10,000 times in a row.
Here is the javaScript for the litho:
this.getField("Litho").value = util.printf("%04d", Number(this.getField("Litho").value)+1);
I am unfamiliar with Javascript to add a command to keep printing. Any guidance you could provide.
Again, I really appreciate your time and your help so far.
The easy thing to do is to write a short piece of code in the console window
for(var i=0;i<1000;i++)
this.print(false);
The print command can get a lot fancier. Here's the reference entry:
There's a tutorial on using the console window here:
https://www.pdfscripting.com/public/Free_Videos.cfm#JSIntro
You don't really need to code in the text field, since the process is already being automated on the console the number code could be integrated into the loop. In fact if you need to do this process often, it would be worthwhile to create an automation script. Here's some material on doing that:
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.