Skip to main content
Sonny AR
Inspiring
September 1, 2023
Question

Apply Dynamic Stamp to all PDF pages at one click

  • September 1, 2023
  • 2 replies
  • 4417 views

Hello Experts,

 

I'm working on a Dynamic Stamp, which has a automatic page numbering function, (ex: Page 1 of 3)

i want to apply this stamp on all pages with the same input data because it also has a One text field. but the tricky part is that when it's applied to all pdf pages at one click. it should update the page numbers. 

 

So, if someone can help me to create a script for applying dynamic stamp into all pdf with page numbering feature in one single click, I would greatly appreciate it.

 

 

this script i'm using for Updating Page numbers in Stamp.

event.value = "PAGE " + (event.source.source.pageNum + 1) + " OF " + event.source.source.numPages;

 

Thank You

This topic has been closed for replies.

2 replies

try67
Community Expert
Community Expert
September 1, 2023

How are you applying the stamp to all pages, exactly?

Sonny AR
Sonny ARAuthor
Inspiring
September 1, 2023

EDITED

Thanks for your response,

I want to apply a stamp to all the pages of a document. When I apply the stamp, a data entry box should appear once to prompt the user to enter data and apply stamp to all pages in a document automatically at one click.

BUT keep updating "seiten" field for page numbering according to the page number of a document.

The stamp consists of two text fields:

- The first field is for entering data in a box.
- The second field, labeled 'Seiten,' should automatically display the current page number and keep track of the total number of pages in the document.

if ((event.source.forReal) && (event.source.stampName == "#Abrechnung")) {
    var cAsk = "Please enter Anlagen-Nr";
    var cTitle = "Abrechnung";
    var cMsg = app.response(cAsk, cTitle);
    event.value = cMsg;
}

 

try67
Community Expert
Community Expert
September 1, 2023

The only way I can see that working is if you apply the stamp using a script, after the user applied it to the first page. The script will have to be adjusted to populate the page number automatically instead of using user input.

JR Boulay
Community Expert
Community Expert
September 1, 2023

You don't need stamps or scripts to add page numbers:

 

Acrobate du PDF, InDesigner et Photoshopographe