No downloads or installation required!
Password protect a PDF using our free online app or learn how it works with our embedded iText 8 Sandbox.
Use the free online PDF Protector app
Click the box below to upload a PDF, or drag and drop a PDF into the box.
You will then be asked to choose an Owner Password to protect the PDF with, and select the Encryption options you want. You can also configure permissions for the PDF, for example if you want to allow printing without entering the password. If you wish, you can also set a User Password to allow restricted access to the PDF.
Click Protect PDF and then download the resulting PDF.
Or play in the iText 8 Sandbox
In this Sandbox you can see how the the protection code works in iText 8, and experiment with changing the code yourself.
Click Upload File and make sure the file name of the PDF you upload matches the name you specify in
private static final String ORIG. You can then choose the type of password you want to set by specifying it in
private static final byte USERPASS or
private static final byte OWNERPASS. You can set both types of password if you wish.
Then click Execute to run your code. To remove an uploaded file, click the x displayed next to the file name.
You can click the switch at the top of the Sandbox to change between the embedded Java and C# compiler.
Want to know more about iText?Discover all features, examples and more
iText does not analyze the content of your uploaded or processed files. Users bear sole responsibility for the usage and content of their own files. All uploaded and processed files are deleted from our servers after users leave the page, or automatically after a period of 3 hours.