Skip to main content
Participant
February 16, 2024
Question

Adding amount of pages into a dynamic stamp

  • February 16, 2024
  • 1 reply
  • 1752 views

Hi guys,

 

complete newbie here, trying to create a dynamic stamp that will count and appropriately add the amount of pages within my PDF. 

I have created a dynamic stamp with a text box im just unsure what to do next, any help would be super appreciated 🙂

 

TIA

This topic has been closed for replies.

1 reply

Abambo
Community Expert
Community Expert
February 16, 2024

To get the total number of pages in a document, use the doc property numPages.

ABAMBO | Hard- and Software Engineer | Photographer
hardkmonAuthor
Participant
February 16, 2024

thats not what i'm looking to do. 

 

I need the java script to input within a text box on this dynamic stamp to auto-fill the number of pages on the open pdf.

 

try67
Community Expert
Community Expert
February 16, 2024

As the custom calculation script of that field enter:

if (event.source) event.value = event.source.source.numPages;