does not pop up? Otherwise, could the developers consider adding a "don't enable now and in the future, and don't ask again" response option?JavaScript PDF-XChange Editor
This document contains JavaScript. Do you wish to enable all JavaScript actions in this document?
Note: The document may not behave correctly, if they are disabled.
Suppress this message until this document is reopened
Permanently disable JavaScript support in opened documents SOLVED
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
-
Jensen Head
- User
- Posts: 871
- Joined: Mon Sep 13, 2021 8:12 am
Permanently disable JavaScript support in opened documents
There are JavaScripts in the documents I work with, but I don't need them. I work only with graphic-text archival documents without the use of interactive elements. Is there a way to turn off JavaScript support in the application so that when opening files with JavaScript, an annoying message
-
Daniel - PDF-XChange
- Site Admin
- Posts: 12566
- Joined: Wed Jan 03, 2018 6:52 pm
Re: Permanently disable JavaScript support in opened documents
Hello, Jensen Head
To prevent JS from running, and from getting popups to do so, look to the applications preferences (Ctrl+K) under the "javascript" category. Then uncheck the "enable" and "show warning" checkboxes for JS: Kind regards,
To prevent JS from running, and from getting popups to do so, look to the applications preferences (Ctrl+K) under the "javascript" category. Then uncheck the "enable" and "show warning" checkboxes for JS: Kind regards,
You do not have the required permissions to view the files attached to this post.
Dan McIntyre - Support Technician
PDF-XChange Co. LTD
+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
PDF-XChange Co. LTD
+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
-
Jensen Head
- User
- Posts: 871
- Joined: Mon Sep 13, 2021 8:12 am
Re: Permanently disable JavaScript support in opened documents
Doesn't the "Show warning when JavaScript action executes" setting cause JavaScript to be executed without being prompted? It doesn't seem to be the same as "deny JavaScript execution and don't issue a warning".
-
Daniel - PDF-XChange
- Site Admin
- Posts: 12566
- Joined: Wed Jan 03, 2018 6:52 pm
Re: Permanently disable JavaScript support in opened documents
Hello, Jensen Head
Not quite, I had a long chat with the Devs about this, and the options will be seeing some change, the show warning option will present a warning when a document has Js that is tries to execute, giving you the opportunity to allow it, or disallow it manually, for that session. This is helpful because there could be times when a document actually requires JS to appear correctly, and actively seeing a prompt which you say "no" to before opening can help to showcase why it was required.
In the future, we will be changing the text of these options to make that more obvious.
Kind regards,
Not quite, I had a long chat with the Devs about this, and the options will be seeing some change, the show warning option will present a warning when a document has Js that is tries to execute, giving you the opportunity to allow it, or disallow it manually, for that session. This is helpful because there could be times when a document actually requires JS to appear correctly, and actively seeing a prompt which you say "no" to before opening can help to showcase why it was required.
In the future, we will be changing the text of these options to make that more obvious.
Kind regards,
Dan McIntyre - Support Technician
PDF-XChange Co. LTD
+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
PDF-XChange Co. LTD
+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
-
WT_Tech
- User
- Posts: 4
- Joined: Tue Mar 14, 2023 4:50 am
Re: Permanently disable JavaScript support in opened documents
This is a historic thread but also the closest response I can find to a new item:
After a recent update of PDF-XChange Editor (to v9.5 build 366.0), Javascript appears to be permanently ENABLED. i.e. Turning off Javascript has no effect and the Javascript is 'run' on startup each time. Here are the settings used which should turn off Javascript on startup:
This is proven by removing all checks (as per above - which still ran the Javascript). After opening I then deleted all document 'fields' which were called by the Javascript and also checked the 'Show warning when JavaScript action executes' tickbox shown above. After closing and re-opening, I get the following pop-up the warning...i.e. The JavaScript HAS executed but throws an error when attempting to find the now missing fields....
The appears to be a recent issue as turning OFF Javascript has worked fine for years until the recent update??
Any thoughts?
Thanks
After a recent update of PDF-XChange Editor (to v9.5 build 366.0), Javascript appears to be permanently ENABLED. i.e. Turning off Javascript has no effect and the Javascript is 'run' on startup each time. Here are the settings used which should turn off Javascript on startup:
This is proven by removing all checks (as per above - which still ran the Javascript). After opening I then deleted all document 'fields' which were called by the Javascript and also checked the 'Show warning when JavaScript action executes' tickbox shown above. After closing and re-opening, I get the following pop-up the warning...i.e. The JavaScript HAS executed but throws an error when attempting to find the now missing fields....
The appears to be a recent issue as turning OFF Javascript has worked fine for years until the recent update??
Any thoughts?
Thanks
You do not have the required permissions to view the files attached to this post.
-
Daniel - PDF-XChange
- Site Admin
- Posts: 12566
- Joined: Wed Jan 03, 2018 6:52 pm
Re: Permanently disable JavaScript support in opened documents
Hello, WT_Tech
Thank you for the report, I have reproduced the issue and brought it to our Dev team directly. This should be resolved for the next release. I apologize for the trouble.
Kind regards,
Thank you for the report, I have reproduced the issue and brought it to our Dev team directly. This should be resolved for the next release. I apologize for the trouble.
Kind regards,
Dan McIntyre - Support Technician
PDF-XChange Co. LTD
+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
PDF-XChange Co. LTD
+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
-
kumar
- User
- Posts: 93
- Joined: Fri Dec 21, 2018 3:34 am
Re: Permanently disable JavaScript support in opened documents
Hi,
I need to disable JavaScript too but still want to get the warning message before JavaScript executes and I think this is a very important fix that needs to be released as soon as possible due to the security risks. That said, does unchecking "Enable JavaScript Actions" and "Show warning when JavaScript action executes", then will it disable JavaScript? Please confirm. This could be a temporary workaround solution until a fix is released.
Hoping then in the next release,
1. Enable JavaScript Actions - Unchecking this option will disable JavaScript
AND
2. Show warning when JavaScript action executes - Checking this option will show a warning message before JavaScript executes
Can you please confirm this is how it will work in the fixed release?
Thanks.
I need to disable JavaScript too but still want to get the warning message before JavaScript executes and I think this is a very important fix that needs to be released as soon as possible due to the security risks. That said, does unchecking "Enable JavaScript Actions" and "Show warning when JavaScript action executes", then will it disable JavaScript? Please confirm. This could be a temporary workaround solution until a fix is released.
Hoping then in the next release,
1. Enable JavaScript Actions - Unchecking this option will disable JavaScript
AND
2. Show warning when JavaScript action executes - Checking this option will show a warning message before JavaScript executes
Can you please confirm this is how it will work in the fixed release?
Thanks.
-
Daniel - PDF-XChange
- Site Admin
- Posts: 12566
- Joined: Wed Jan 03, 2018 6:52 pm
Re: Permanently disable JavaScript support in opened documents
Hello, kumar
Yes, unchecking both options will prevent JS from running (once these controls are working that is...), The Dev team has also confirmed that this issue is already fixed and will definitely be in the 368.0 build release, at the moment however, I do not have a timeline for when this will be available.
If show warning is left enabled, than yes, and JS attempting to run should cause a popup asking you to allow it to continue.
Kind regards,
Yes, unchecking both options will prevent JS from running (once these controls are working that is...), The Dev team has also confirmed that this issue is already fixed and will definitely be in the 368.0 build release, at the moment however, I do not have a timeline for when this will be available.
If show warning is left enabled, than yes, and JS attempting to run should cause a popup asking you to allow it to continue.
Kind regards,
Dan McIntyre - Support Technician
PDF-XChange Co. LTD
+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
PDF-XChange Co. LTD
+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
-
Jensen Head
- User
- Posts: 871
- Joined: Mon Sep 13, 2021 8:12 am
Re: Permanently disable JavaScript support in opened documents
So, how exactly does the "Enable JavaScript Actions" setting work in PDF-XChange Editor 10.7.6, build 404?
If disabling it blocks all JavaScript, regardless of whether it's necessary for document rendering, then why isn't the "Show warning when JavaScript action executes" setting grayed out шт this case as meaningless/ineffective?
If the first setting doesn't work as I described, then it should probably be named differently so that its meaning more accurately reflects its function.
If disabling it blocks all JavaScript, regardless of whether it's necessary for document rendering, then why isn't the "Show warning when JavaScript action executes" setting grayed out шт this case as meaningless/ineffective?
If the first setting doesn't work as I described, then it should probably be named differently so that its meaning more accurately reflects its function.
-
Daniel - PDF-XChange
- Site Admin
- Posts: 12566
- Joined: Wed Jan 03, 2018 6:52 pm
Re: Permanently disable JavaScript support in opened documents
Hello, Jensen Head
I am sorry to say that the Dev team have been quite stubborn in this respect, and have so far not wanted to make changes to the presentation here. I agree that it is confusing, and I sincerely wish we could change this so the "show warning" option was available when enabled, instead of when it is disabled...
In any case, since that seems unlikely, there are currently 3 states:
1. Js "actions" will not run at all: 2. Js "actions" are disallowed unless you allow them to run via the presented prompt: 3. Js "actions" will be allowed to run without any prompt: With that said, I brought it up one more time with the Dev team leader today, to try and get him to reconsider. I cannot promise anything, give the history of these options, but who knows...
[Update] - It looks like we may just remove the show warning option entirely.. to ease confusion and keep our product in line with expectations carried over from Acrobat.
Kind regards,
I am sorry to say that the Dev team have been quite stubborn in this respect, and have so far not wanted to make changes to the presentation here. I agree that it is confusing, and I sincerely wish we could change this so the "show warning" option was available when enabled, instead of when it is disabled...
In any case, since that seems unlikely, there are currently 3 states:
1. Js "actions" will not run at all: 2. Js "actions" are disallowed unless you allow them to run via the presented prompt: 3. Js "actions" will be allowed to run without any prompt: With that said, I brought it up one more time with the Dev team leader today, to try and get him to reconsider. I cannot promise anything, give the history of these options, but who knows...
[Update] - It looks like we may just remove the show warning option entirely.. to ease confusion and keep our product in line with expectations carried over from Acrobat.
Kind regards,
You do not have the required permissions to view the files attached to this post.
Dan McIntyre - Support Technician
PDF-XChange Co. LTD
+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
PDF-XChange Co. 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: 786
- Joined: Thu Jun 19, 2014 7:30 pm
Re: Permanently disable JavaScript support in opened documents
It seems like this option only applies to Document scripts (?) If so, I'd like to add a suggestion that may make it clearer:
Instead of the section being called "JavaScript", name it "Document JavaScript" and provide a dropdown with three options:
Instead of the section being called "JavaScript", name it "Document JavaScript" and provide a dropdown with three options:
- Disable (Document scripts will not run)
- Always Ask (Show warning before action runs)
- (IMO this could be just "Ask" with a "Don't ask again for this document" checkbox on the dialog)
- Enable (Document scripts will always run)
You do not have the required permissions to view the files attached to this post.
-
Daniel - PDF-XChange
- Site Admin
- Posts: 12566
- Joined: Wed Jan 03, 2018 6:52 pm
Re: Permanently disable JavaScript support in opened documents SOLVED
Hello, Mathew
Your assumption there is correct that it is specifically document scripts. However I am sorry to say that the case is closed for now. The Dev team have removed the ask option entirely, matching Acrobat's functionality in their settings of the same name. Unfortunately, the decision appears to be final and I cannot raise another discussion to change it. We will have to wait and see how it goes with the rest of our clients when the change goes live in 10.8.
Kind regards,
Your assumption there is correct that it is specifically document scripts. However I am sorry to say that the case is closed for now. The Dev team have removed the ask option entirely, matching Acrobat's functionality in their settings of the same name. Unfortunately, the decision appears to be final and I cannot raise another discussion to change it. We will have to wait and see how it goes with the rest of our clients when the change goes live in 10.8.
Kind regards,
You do not have the required permissions to view the files attached to this post.
Dan McIntyre - Support Technician
PDF-XChange Co. LTD
+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
PDF-XChange Co. 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: 786
- Joined: Thu Jun 19, 2014 7:30 pm
Re: Permanently disable JavaScript support in opened documents
Ugh Build 409: This is an upsetting backwards step. Now javascript just fails silently without giving the option to run it for specific documents (ie stamps). I very much dislike this change.
I must use pdf's from other people all the time and definitely don't want random document javascript to be able to run without me knowing about it. But I very much DO want to be able to use, for example, dynamic stamps. Now I get the choice of low security, or dynamic stamps. I have to revert to an older version.
I must use pdf's from other people all the time and definitely don't want random document javascript to be able to run without me knowing about it. But I very much DO want to be able to use, for example, dynamic stamps. Now I get the choice of low security, or dynamic stamps. I have to revert to an older version.
-
Daniel - PDF-XChange
- Site Admin
- Posts: 12566
- Joined: Wed Jan 03, 2018 6:52 pm
Re: Permanently disable JavaScript support in opened documents
Hello, Mathew
Thank you for vocalizing this opinion - I will make note of it and raise it with the Dev team.
Kind regards,
Thank you for vocalizing this opinion - I will make note of it and raise it with the Dev team.
Kind regards,
Dan McIntyre - Support Technician
PDF-XChange Co. LTD
+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
PDF-XChange Co. 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: 786
- Joined: Thu Jun 19, 2014 7:30 pm
Re: Permanently disable JavaScript support in opened documents
Thank you Daniel. For now I'll have to stick with build 404 (10.7.6) because it's an impossible choice to risk running all javascript on any file I open; or stop using dynamic stamps (and javascript functionality such as date fields in documents I do trust).Daniel - PDF-XChange wrote: ↑Mon Mar 23, 2026 6:48 pm Thank you for vocalizing this opinion - I will make note of it and raise it with the Dev team.