Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
4

dynamic Stamp

Community Beginner ,
Dec 18, 2023 Dec 18, 2023

The dynmaic stamp is not working correctly, the Date and Time stay the same as when the stamp was created when i add my stamp to a pdf.

 

I tried these 2 different Java Scripts and it doesn't seem to work with none of them:

 

  • this.getField("Text6").value=util.printd("dd.mm.yyyy, HH:MM:ss", new Date());
  • event.value = util.printd ("dd mmm yyyy", new Date);

Does ayone have a clue ?

TOPICS
JavaScript , PDF
2.5K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
1 ACCEPTED SOLUTION
Community Expert ,
Dec 21, 2023 Dec 21, 2023
LATEST

The main issue with this stamp is that it has two pages, and the wrong page (the completely blank one) is set as the stamp. 

Change that and it will work. 

 

 

 

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

View solution in original post

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 18, 2023 Dec 18, 2023

Where does you use the script?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 19, 2023 Dec 19, 2023

Under "calculte" and then "custom calculation script"

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 18, 2023 Dec 18, 2023

The problem is likely to be in how you created the Dynamic Stamp. For example, if you import the stamp into Acrobat using the "Manage" or "Create" custom stamp features, then the script will be destroyed and the date/time will be fixed. 

 

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 19, 2023 Dec 19, 2023

How am i supposed to import the Stamp into Adobe ?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 19, 2023 Dec 19, 2023

If you're copying them from another computer you need to copy the stamp PDF file directly from the application's Stamps folder. The exact path depends on your OS and version of Acrobat.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 19, 2023 Dec 19, 2023

Here is an article that covers installing stamps.

https://www.pdfscripting.com/public/Installing-a-PDF-Stamp-into-Acrobat-Macintosh-and-Windows.cfm

 

 

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 21, 2023 Dec 21, 2023

This is the Stamp i have created

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 21, 2023 Dec 21, 2023
LATEST

The main issue with this stamp is that it has two pages, and the wrong page (the completely blank one) is set as the stamp. 

Change that and it will work. 

 

 

 

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines