Hi,
is there a easy way to add several dynamic count up ticket numbering fields on one page in Acrobat Professional.
We have a Letter sized page with a layout of six different tickets that need a unique count up number on print out.
For ex:
ticket one - a number field starting at "001" ending at "250"
ticket two - a number field starting at "251" ending at "500"
ticket three - a number field starting at "501" ending at "750"
The original pdf file is created in Adobe Illustrator.
We do't use inDesign
etc.
;-)
/Foppa
This is fairly simple, just use a loop. You could run this script directly in the console window.
for(var i=1;i<251;i++)
{
this.getField("Ticket1").value = i;
this.getField("Ticket2").value = 250 + 1;
... etc ...
this.print({bUI:false, bSilent:true});
}
You'll also need to format the fields to include the leading zero. Use this Formatting script:
event.value = util.printf("%03d",event.value);
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script