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

Custom dynamic stamp

Contributor ,
Sep 26, 2016 Sep 26, 2016

I am using Acrobat Pro DC on a Mac and I do not know anything about scripting. I would like to create a custom dynamic stamp that includes time and date. I found Thom Parker's "The Acrobat JavaScript Console (Your best friend for developing Acrobat JavaScript)". Following his instructions, I enter   app.getPath("app", "stamps")   in the console I get  /MacintoshHD/Applications/Adobe Acrobat DC/Adobe Acrobat.app/Contents/Plugins/Comments.acroplugin/Contents/Resources/Stamps/.  His instructions then say I should access the directory. My problem is that I do not know how to access the directory - any assistance will be appreciated. Many thanks in advance.

TOPICS
Acrobat SDK and JavaScript
1.3K
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
LEGEND ,
Sep 26, 2016 Sep 26, 2016

When you get to the "Adobe Acrobat.app" file in Finder, right-click and select: Show Package Contents

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
Contributor ,
Sep 26, 2016 Sep 26, 2016

Thanks!

I did that and followed through to /Stamps/ . The ENU folder has six PDFs; the one labeled "Dynamic.pdf", when opened, shows six standard dynamic "stamps" but not the four custom stamp PDFs I created which I wish to modify. Is the ENU folder the wrong folder?

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 ,
Sep 26, 2016 Sep 26, 2016

This is the folder of the app stamps. To find the user stamps open the JS Console in Acrobat (Cmd+J), paste this code into it and then press Shift+Enter and it should be printed out:

app.getPath("user", "stamps");

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
Contributor ,
Sep 26, 2016 Sep 26, 2016

What comes up in the JS Console is:

/MacintoshHD/Users/administrator/Library/Application Support/Adobe/Acrobat/DC/Stamps/

Apple, however, has not placed a Library folder under administrator in OS X (nor has it done so for the last few versions of the OS). To find it, you have to select "Go To Folder" under Go in the menu bar, enter "~/Library" and hit Enter.

I have done this and found the PDF for the four stamps to which I want to add fields that will show time and date automatically when one of these stamps is used on a PDF. In Acrobat Pro DC, how do I add these fields (I can find various instructions online for earlier versions of Acrobat but not for Acrobat Pro DC)?

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
LEGEND ,
Sep 26, 2016 Sep 26, 2016

Begin by opening the stamp PDF and then select: Tools > Prepare Form

to go into form editing mode, but don't select the "This form requires signatures" check box. If you have keyboard acellerators enabled in preferences, you can simply press the A key to enter/exit form editing mode.

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 ,
Sep 27, 2016 Sep 27, 2016

There is a simpler way to get to a user's Library folder: When in the Finder, go to the "Go" menu and hold down the option (or Alt)  key - this will show the Library menu item. You can now select it from the list and your Finder window will show the contents of the Library folder.

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
Contributor ,
Sep 27, 2016 Sep 27, 2016

Thanks!

I am able to locate the PDF for the four stamps to which I want to add fields that will show time and date automatically when one of these stamps is used on a PDF. I to go into form editing mode (but do not see the "This form requires signatures" check box). Am I correct in believing that I then add a text field? If so, where do find a script, and how do I access it, time and date?

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
LEGEND ,
Sep 27, 2016 Sep 27, 2016
LATEST

I would open the stamp PDF file with Acrobat and then save it in a new or different directory changing the name of the file so you do not change the Adobe provided stamp.

No open the "Prepare Form" tool and you should see the various fields for the stamp. You can then edit the fields just like any PDF form. You can use the right mouse click to bring up the context menu and then select the "Properties" option. This will open  a new window with several tabs. Select the one labeled "Calculation" and you should the needed script in the "Custom JavaScript calculation" section (option). I do not think you need a signature for a custom stamp. You might use an image of a signature in a stamp. Usually adding a signature to a PDF form is form signing and locking the entire from from changes.

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