Skip to main content
Participant
February 16, 2024
Question

Adding amount of pages into a dynamic stamp

  • February 16, 2024
  • 1 reply
  • 1730 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.

 

Thom Parker
Community Expert
Community Expert
February 16, 2024

 for some reason it wont let me paste anything?

 

as I said I am a complete novice at this I apoligise and thank you for the help in advance.


Click on the "Edit" button.

 

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often