How to Print Invoice Copies with Sequential Numbers in Adobe Acrobat
Question details
The user wants to print multiple copies of a PDF invoice, with each printed page displaying a unique, automatically incrementing invoice number.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- Printing a batch of invoice forms or an invoice book where every single physical copy requires a distinct serial or invoice number.
- Observed behavior
- Using the standard 'Number of Copies' setting in the Print dialog simply produces identical duplicates of the first page without changing the invoice number.
Ensure your PDF invoice template has space for an invoice number, and that you have access to the 'Prepare Form' tool and JavaScript console in Adobe Acrobat.
Use a Text Field and JavaScript to Increment Numbers
Create a custom form field for the invoice number and use a JavaScript loop to automatically increment the value and print each page individually.
Standard print dialogs cannot generate variable data. By using a short script, you can command Adobe Acrobat to change the number in the text field, send a single copy to the printer, and repeat the process automatically.
Open your PDF in Adobe Acrobat, select 'Tools' > 'Prepare Form'. Add a new Text Field where you want the number to appear and name it exactly 'InvoiceNumber'.
Double-click the 'InvoiceNumber' field to open its Properties. Under the Options tab, set the default value to your starting invoice number (e.g., '1000') and close the properties.
Press 'Ctrl + J' (Windows) or 'Cmd + J' (Mac) to open the JavaScript Debugger console in Adobe Acrobat.
In the console, write a looping script that increments the field and prints. For example: for (var i = 0; i < 50; i++) { this.getField('InvoiceNumber').value++; this.print({bUI: false, bSilent: true, bShrinkToFit: true}); } Select the code and press 'Ctrl + Enter' to run it.

Manage Forms and Print PDFs Effectively with WPS Office
WPS Office provides a powerful, lightweight PDF editor that allows you to easily manage text, fill out forms, and print professional invoices. It serves as an excellent, user-friendly alternative for handling your daily document and PDF needs.
- 1. Download and Install: Download WPS Office from the official website and install it on your computer.
- 2. Open the Invoice Template: Launch WPS Office and open your PDF invoice template.
- 3. Edit Forms and Print: Use the Form tools to adjust your invoice fields, then navigate to 'Menu' > 'Print' to configure your physical or digital output.

Frequently Asked Questions
Can I use the standard 'Copies' setting to print sequential numbers?
No, standard print copies will simply duplicate the exact current state of the page. You must use a script to change the field value for each separate print command, or use a professional variable-data printer.
Do I need programming skills to print sequential invoices in Adobe Acrobat?
You will need a very basic understanding of JavaScript to write a simple loop. The script essentially tells the software to add 1 to the invoice field, print the document, and repeat.
Is there a way to do this without using JavaScript?
Without JavaScript, you would have to manually type the new invoice number into the field and click 'Print' for each individual copy. Alternatively, you can use the Mail Merge feature in a word processor like Microsoft Word or WPS Writer to generate sequential pages before exporting to PDF.




