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

Hiding fields in a PDF

Explorer ,
Oct 31, 2024 Oct 31, 2024

Hello!

I have a PDF document that has Javascript I do not want made available to those who use the document. 

Is it possible to hide those fields so that the Javascript is not visible but maintain the document's functionality?

I want to protect the secret sauce even if the file is saved as a save-as. 

 

Thank you for your assistance!

TOPICS
Create PDFs , Edit and convert PDFs , How to , JavaScript , Modern Acrobat , PDF , PDF forms
971
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 ,
Nov 01, 2024 Nov 01, 2024

https://www.javascriptobfuscator.com/Javascript-Obfuscator.aspx

Be aware that certain Anti-virus softare and email providers might not like your PDF after this.

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 ,
Oct 31, 2024 Oct 31, 2024

You can obfuscate the scripts, but there's no way of protecting it completely.

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
Explorer ,
Nov 01, 2024 Nov 01, 2024

Thank you so much! This gives me something to think about. 

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 ,
Oct 31, 2024 Oct 31, 2024

Use password encryption that prevents "changing the document".

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
Explorer ,
Nov 01, 2024 Nov 01, 2024

Thank you so much! Perhaps I can use password protection with obfuscating the scripts?

 

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 ,
Nov 01, 2024 Nov 01, 2024

Yes, you can use both.

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
Explorer ,
Nov 01, 2024 Nov 01, 2024

Thank you! 

 

Any suggestions for the best way to obfuscate the scripts?

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 ,
Nov 01, 2024 Nov 01, 2024

https://www.javascriptobfuscator.com/Javascript-Obfuscator.aspx

Be aware that certain Anti-virus softare and email providers might not like your PDF after this.

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
Explorer ,
Nov 01, 2024 Nov 01, 2024
LATEST

Thank you so much for the caution. I did not realize that would affect those items. I'm seeing there is no sure-fire way to protect your work. 

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