Skip to main content
Spicehead-53186
Participant
January 19, 2022
Answered

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

  • January 19, 2022
  • 1 reply
  • 5936 views

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. 

This topic has been closed for replies.
Correct answer Thom Parker

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.

 

  

 

1 reply

JR Boulay
Community Expert
Community Expert
January 20, 2022

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

 

Acrobate du PDF, InDesigner et Photoshopographe
Spicehead-53186
Participant
January 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...

Thom Parker
Community Expert
Thom ParkerCommunity ExpertCorrect answer
Community Expert
January 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 PDFScriptingUse the Acrobat JavaScript Reference early and often