Dynamic Stamps: Correct way to clone and edit

Forum for the PDF-XChange Editor - Free and Licensed Versions

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Sean - Tracker, Paul - Tracker Supp, Chris - Tracker Supp, Tracker Supp-Stefan, Ivan - Tracker Software

Post Reply
Posts: 8
Joined: Thu Dec 01, 2016 10:42 am

Dynamic Stamps: Correct way to clone and edit

Post by M P » Mon Jul 27, 2020 4:06 pm

Hello PDF XChange Community,

I have a dynamic custom stamp with javascript which I like to copy and slightly modify the copy.

If I copy just the stame file in
%appdata%\Tracker Software\PDFXEditor\3.0\Stamps

and then modify it, every time I select the new stamp the old
stamp is placed. I assume there is an ID insde the file? Can I modify this ID?

If I use Stamp Pallett->New->"Stamp from File" or "Stamp from active document" the form fields
and the javascript is lost.

I'm shure this problem is not new but I didn't find anything in the forums.


Posts: 167
Joined: Fri Apr 11, 2014 1:18 am

Re: Dynamic Stamps: Correct way to clone and edit

Post by lev » Sat Aug 01, 2020 1:02 pm


Here's a brief step-by-step:
  • Backup you existing stamp collection
  • Import your stamp (all fields will be stripped upon import)
  • Open your stamp collection located at C:\Users\[username]\AppData\Roaming\Tracker Software\PDFXEditor\3.0\Stamps
  • Copy and paste all fields from your original stamp into the one in your stamp collection
  • Make sure there's

    Code: Select all

    console.println("Stamp Name:" + event.source.stampName);
    line at the top of the script
  • Save your stamp collection (I add -1 at the end of the original file name since saving with the same name is not an option)
  • Delete file with your original stamp collection (the one without -1 at the end)
  • Open Editor and open the Javascript window (Ctrl+J)
  • Stamp a document with your new stamp. Copy stamp name from the Javascript window to the clipboard
  • Open your stamp collection
  • Open the script and change stamp name to the the one in the clipboard. Look for

    Code: Select all

    event.source.forReal && (event.source.stampName ==
  • Save your stamp collection (delete -1 at the end of the file name)
  • Delete file with -1 at the end of the name

User avatar
Site Admin
Posts: 4254
Joined: Wed Jan 03, 2018 6:52 pm

Re: Dynamic Stamps: Correct way to clone and edit

Post by TrackerSupp-Daniel » Wed Aug 05, 2020 4:26 pm

Hi, All

Thank you, Lev, for providing those instructions, Hopefully they can help many others.

Have a great day!
Daniel McIntyre
Support Technician
Tracker Software Products (Canada) LTD

Support: <Support@tracker-software.com>
Sales: +1 (250) 324-1621
Fax: +1 (250) 324-1623

Post Reply