Skip to main content
Participating Frequently
June 11, 2025
Answered

Need exportAsFDF to work within an encrypted PDF

  • June 11, 2025
  • 3 replies
  • 319 views

I want to protect the javascript I have entered from being seen or edited by encrypting the PDF with a password.  When I protect the PDF, any javascript statement that contains the exportAsFDF stops working.  Any way of making the exportAsFDF statement work like it does in an un-protected version of the PDF?

Wes

Correct answer try67

Be aware you can't protect it fully. Anyone willing enough can find ways around this protection, so don't put sensitive info there (like a password) and think no-one will be able to view it.

3 replies

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
June 11, 2025

Be aware you can't protect it fully. Anyone willing enough can find ways around this protection, so don't put sensitive info there (like a password) and think no-one will be able to view it.

PDF Automation Station
Community Expert
Community Expert
June 11, 2025

The following settings will protect the script from being seen or edited, but also allow exportAsFDF:

 

 

wes@ESAAuthor
Participating Frequently
June 11, 2025

Thank you for the replies.  I had neglected to check the box "Enable copying of text, images and other content.  That's all it took for the exportAsFDF statements to work in the protected PDF.  Thanks again for taking the time to reply.  WES

Bernd Alheit
Community Expert
Community Expert
June 11, 2025

What settings do you use at the protection?