These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Add dynamic ticket numbering fields in Acrobat

foppa
Registered: Jan 10 2011
Posts: 1

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
 

My Product Information:
Acrobat Pro 8.1.7, Macintosh
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
You want the count up to happen on print? You'll need to write an automation script that repeatedly increments and then prints.

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