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

Help with numbering invoice for print job

Dezmond
Registered: Feb 19 2009
Posts: 3

Hey all.. Love the forum. Lots of help here for sure!

I am a small print shop in Ontario. I get jobs like gift certificates and invoice and such that I run through my digital copier / printer. I would love to be able to have the numbering done on the top right (or wherever I need it) as they are being printed. Can this be done easily? How can I do this? I use acrobat pro.

Thanks for the help and suggestions!!!

Dezmond

My Product Information:
Acrobat Standard 9.0, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Yes, it's possible to place numbers on a PDF when it's printed. But the feasibility and difficulting depend on what exactly you want to do.

Where do these numbers come from? Are the PDF printed directly from Acrobat, or as the result of of some other process?

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

Dezmond
Registered: Feb 19 2009
Posts: 3
I am new with importing data etc.. All I want the numbers for is invoicing. You know in the upper left hand corner there is a inovice number on pre printed forms. I would like it to start at 0001 on the first invoice and when I have printed 500 of them for the customer the last invoice number is 0500

Something simple like that..
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
So you want to print the same form with different numbers? Incrementing the number each time the form is printed?

You could do this with a custom Automation Script. Place a text field in the location where you want the number printed. Then the automation script fills in the number, prints the form, increments the number, and then repeats.

For example, a simple way to do this is to run the following script from the console window, when the form is open in Acrobat
// Get the form field for the invoice numbervar oNumFld = this.getField("InvoiceNumber");for(var nInc=1;nInc<= 500;nInc++){oNumFld.value = util.printf("%04d",nInc);this.print({bUI: false,bSilent:true});}

Of course this is going to take a while and it's going to lock up Acrobat during that time.

For information on using the console window see this article:
http://www.acrobatusers.com/tutorials/2006/javascript_console/

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script