Skip to main content
arinzaaa
Participant
December 3, 2018
Question

oMaking an editable PDF Form non-editable using a java script

  • December 3, 2018
  • 1 reply
  • 1932 views

Hello Everyone,

I am new the forums here.

I need assistance with creating a script shortcut that would make the PDF non-editable.

In a way, i require a shortcut of instead of going to settings to make the PDF non-editable, i would like to use a script instead.

Any ideas?

Thank you.

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
December 3, 2018

"Non-editable" can mean a lot of things. Please clarify what exactly you mean by it. What commands are you currently using to get it to that state?

arinzaaa
arinzaaaAuthor
Participant
December 3, 2018

Hello try67,

Thank you for your fast reply.

so far we have been doing it this way:

https://www.adobe.com/content/dam/acom/en/products/acrobat/pdfs/adobe-acrobat-xi-protect-pdf-file-with-permissions-tutor…

1. At the top right in Acrobat, click the Tools pane. Open the Protection panel.

2. Click Encrypt, and select Encrypt With Password. Confirm that you want to change the security of the

document.

3. In the Password Security Settings dialog box, you can add two types of passwords.

Is there a way to make this into a Java script instead?

Thank you.

try67
Community Expert
Community Expert
December 3, 2018

Yes, by using the encryptUsingPolicy method of the Document object. Read that method's documentation for the full details and some examples.