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

Unable To Enable JavaScript On Files Saved to Network(Mapped network drives)

Community Beginner ,
Jan 19, 2022 Jan 19, 2022

Some clients(mainly gov.) for whatever reason send us Javascript enabled pdf's for us to work with.  We use mapped network drives for storage and collaboration.  Users are unable to enable javascript on files saved to our network drives but can do so no problem on locally saved files. Nothing happens when they click the "enable javascript" yellow bar prompt, no errors or anything, just nothing and unable to enable javascript on these network files. 

If they copy or save that same file locally(desktop) then they can enable javascript, make edits and save, but then have to remember to copy that same file back to the network drive.  This is causing extra steps and time as well as possible loss of work as not all users are great about putting the updated file back to the network drive. 

Would appreciate any input or direction here. 

TOPICS
JavaScript
5.4K
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
1 ACCEPTED SOLUTION
Community Expert ,
Jan 20, 2022 Jan 20, 2022

Sounds like you have a security concious organization, so is it likely that you are also operating in "Protected Mode". If true then Acrobat is probably just refusing to enable JavaScript on anything that is not under direct user control. Have you tried specifically "trusting" these documents, or the network drive in the "Enhanced Security" preferences. I don't know the extent or specifics of Protected Mode, but this type of thing is common to the Acrobat sandboxing model. It's possible that there are settings somewhere that customize Protected Mode. Such as allowing JavaScript to run on a file from a remote source.

 

  

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

View solution in original post

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 ,
Jan 20, 2022 Jan 20, 2022

Can't you enable JavaScript by default, once and for all?

 

Capture_92.png


Acrobate du PDF, InDesigner et Photoshopographe
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 Beginner ,
Jan 20, 2022 Jan 20, 2022

negative, we've disabled Javascript due to the security risks so those options are grayed out.  However since our clients send us Javscrip enabled PDF's we have it set where individuals can manaully and individually enable javascript on a p/pdf file basis.  However only seems to work if files are stored locally...

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 ,
Jan 20, 2022 Jan 20, 2022

Sounds like you have a security concious organization, so is it likely that you are also operating in "Protected Mode". If true then Acrobat is probably just refusing to enable JavaScript on anything that is not under direct user control. Have you tried specifically "trusting" these documents, or the network drive in the "Enhanced Security" preferences. I don't know the extent or specifics of Protected Mode, but this type of thing is common to the Acrobat sandboxing model. It's possible that there are settings somewhere that customize Protected Mode. Such as allowing JavaScript to run on a file from a remote source.

 

  

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

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 Beginner ,
Jan 20, 2022 Jan 20, 2022
LATEST

SPOT ON!!! 

We are not operating in Protected mode, but we do have Enhanced Security turned on. 

I tested on 3 machines by manually adding the files or the folder to specify trusted files and folder as outlined below and SUCCESS!!!  Now regardless of where the file is opened as long as its trusted it will open fine. 

 

Specify privileged locations for trusted content

  • Select Preferences > Security (Enhanced).
  • Select the Enable Enhanced Security option.
  • Specify a list of locations in the Privileged Locations section, and then click OK.
     
    • To trust any sites you already trust in Internet Explorer, select Automatically Trust Sites From My Win OS Security Zones.

    • To add only one or two PDFs from a location, click Add File.

    • To create a trusted folder for multiple PDFs, click Add Folder Path or Add Host.

    • To allow data to load from a website, enter the name of the root URL. For example, enter https://www.adobe.com, but not https://www.adobe.com/products. To trust files from secure connections only, select Secure Connections Only (https:).

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