Skip to main content
Participant
September 3, 2025
解決済み

Would like to have sequential number field that will count number of copies

  • September 3, 2025
  • 返信数 1.
  • 253 ビュー

I have to often print a series of labels that include information such as a roll count, 1 of 50, 2 of 50, etc.

 

How can I add a single form on a single page in Acrobat that will increase sequentially per the copies printed?

解決に役立った回答 PDF Automation Station

Assume the field's name is Count.  Create a non-printable button and add the following mouse-up action script:

this.resetForm(["Count"]);
var count=app.response("How many copies?");
if(!isNaN(count))
{
for(var i=1;i<=count;i++)
{
this.getField("Count").value=i+ " of " + count;
this.print(false);
}
}

 

返信数 1

PDF Automation Station
Community Expert
Community Expert
September 3, 2025

Do you mean "How can I add a single field.."

Participant
September 3, 2025

Yes. "Field." Apolgies

PDF Automation Station
Community Expert
Community Expert
September 3, 2025

Assume the field's name is Count.  Create a non-printable button and add the following mouse-up action script:

this.resetForm(["Count"]);
var count=app.response("How many copies?");
if(!isNaN(count))
{
for(var i=1;i<=count;i++)
{
this.getField("Count").value=i+ " of " + count;
this.print(false);
}
}