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
Dynamic Stamp - Using JavaScript in trusted folder
Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan
-
- User
- Posts: 2
- Joined: Wed Jan 31, 2024 10:56 am
-
- Site Admin
- Posts: 6903
- Joined: Wed Mar 25, 2009 10:37 pm
- Location: Chemainus, Canada
Re: Dynamic Stamp - Using JavaScript in trusted folder
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
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
Paul O'Rorke
Tracker Support North America
http://www.tracker-software.com
-
- User
- Posts: 2
- Joined: Wed Jan 31, 2024 10:56 am
Re: Dynamic Stamp - Using JavaScript in trusted folder
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
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
-
- Site Admin
- Posts: 8624
- Joined: Wed Jan 03, 2018 6:52 pm
Re: Dynamic Stamp - Using JavaScript in trusted folder
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,
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
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
-
- User
- Posts: 239
- Joined: Thu Jun 19, 2014 7:30 pm
Re: Dynamic Stamp - Using JavaScript in trusted folder
Paul, RSK,
If JavaScript is disabled in preferences, then dynamic stamps will not work - at least not on my machine. 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.
If JavaScript is disabled in preferences, then dynamic stamps will not work - at least not on my machine. 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.
You do not have the required permissions to view the files attached to this post.
-
- Site Admin
- Posts: 8624
- Joined: Wed Jan 03, 2018 6:52 pm
Re: Dynamic Stamp - Using JavaScript in trusted folder
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,
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
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