Dynamic Stamp - Using JavaScript in trusted folder

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

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

Post Reply
RSK
User
Posts: 2
Joined: Wed Jan 31, 2024 10:56 am

Dynamic Stamp - Using JavaScript in trusted folder

Post by RSK »

Hi,


I need a dynamic stamp using JavaScript.
Our local authorities prohibit the use of JavaScript in PDF files. Unless the file is located in a trusted folder.
Is there any way to set up such a folder so that JS is disabled globally, but the file/stamp can be opened and JS is executed from the corresponding path? The folder should be mounted as a UNC path.

Kind regards
Harry
User avatar
Paul - Tracker Supp
Site Admin
Posts: 6903
Joined: Wed Mar 25, 2009 10:37 pm
Location: Chemainus, Canada
Contact:

Re: Dynamic Stamp - Using JavaScript in trusted folder

Post by Paul - Tracker Supp »

Hi, RSK

as you say it should be a trusted folder and how one defines that trust.

There is a per user folder %appdata%\Tracker Software\PDFXEditor\3.0\JavaScripts

There is a per machine folder: %programfiles%\Tracker Software\PDF Editor\JavaScripts

Both these are "trusted" locations and where the Editor will look for stamps.

Does that help?

Kind regards,
Paul - Tracker Supp
Best regards

Paul O'Rorke
Tracker Support North America
http://www.tracker-software.com
RSK
User
Posts: 2
Joined: Wed Jan 31, 2024 10:56 am

Re: Dynamic Stamp - Using JavaScript in trusted folder

Post by RSK »

Hi Paul,

Thanks for your quick reply.
Both paths are not present in our installation, both ‘JavaScripts’-folders are missing.
I first had to create the mentioned folders. Then I copied the stamp into the two folders. Unfortunately, PDF-XChange did not recognize the stamp in the newly created folders.
Are there some other settings I had to make?

JavaScript in PDF-XChange is disabled via registry entry:
‘Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Tracker Software\PDFXEditor\3.0\JavaScript’
--> b.Enable(0)

Best regards
Harry
User avatar
TrackerSupp-Daniel
Site Admin
Posts: 8624
Joined: Wed Jan 03, 2018 6:52 pm

Re: Dynamic Stamp - Using JavaScript in trusted folder

Post by TrackerSupp-Daniel »

Hello, RSK

Apologies, I think Paul had the incorrect path there. for "Dynamic stamps" you would be placing these into a folder named "Stamps" in the same location/path as the Javascripts Paul mentioned above.
Beyond that, yes, neither the Stamps, not Javascripts folders exist by default, you will need to create them in one of these two locations:

%appdata%\Tracker Software\PDFXEditor\3.0\
%programfiles%\Tracker Software\PDF Editor\

Kind regards,
Dan McIntyre - Support Technician
Tracker Software Products (Canada) LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
Mathew
User
Posts: 239
Joined: Thu Jun 19, 2014 7:30 pm

Re: Dynamic Stamp - Using JavaScript in trusted folder

Post by Mathew »

Paul, RSK,
If JavaScript is disabled in preferences, then dynamic stamps will not work - at least not on my machine.
image.png
Not sure if there's a way to only disable scripts in pdf files - that would be a useful option. Tricky part is that stamps are pdf files :?
- Mathew.
User avatar
TrackerSupp-Daniel
Site Admin
Posts: 8624
Joined: Wed Jan 03, 2018 6:52 pm

Re: Dynamic Stamp - Using JavaScript in trusted folder

Post by TrackerSupp-Daniel »

Hello, Mathew

Indeed, that is expected, I will pass the idea for an option like this along to the Dev team, but I am not sure how feasible it is. We shall see what they say!

Kind regards,
Dan McIntyre - Support Technician
Tracker Software Products (Canada) LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
Post Reply