Skip to main content
Skip table of contents

Encrypting / Decrypting PDFs

These examples were written in answer to questions such as:


decryptpdf

##GITHUB:https://github.com/itext/i5js-sandbox/blob/master/src/main/java/sandbox/security/EncryptPdf.java##

##GITHUB:https://github.com/itext/i7ns-samples/blob/develop/itext/itext.samples/itext/samples/sandbox/security/DecryptPdf.cs##

decryptpdf2

##GITHUB:https://github.com/itext/i5js-sandbox/blob/master/src/main/java/sandbox/security/DecryptPdf.java##

##GITHUB:https://github.com/itext/i7ns-samples/blob/develop/itext/itext.samples/itext/samples/sandbox/security/DecryptPdf2.cs##


decryptpdf3

We've encountered an issue exporting this macro. Please try exporting again later.

##GITHUB:https://github.com/itext/i7ns-samples/blob/develop/itext/itext.samples/itext/samples/sandbox/security/DecryptPdf3.cs##


encryptpdf

##GITHUB:https://github.com/itext/i5js-sandbox/blob/master/src/main/java/sandbox/security/DecryptPdf2.java##

##GITHUB:https://github.com/itext/i7ns-samples/blob/develop/itext/itext.samples/itext/samples/sandbox/security/EncryptPdf.cs##

encryptpdfwithoutuserpassword

##GITHUB:https://github.com/itext/i5js-sandbox/blob/master/src/main/java/sandbox/security/DecryptPdf3.java##

##GITHUB:https://github.com/itext/i7ns-samples/blob/develop/itext/itext.samples/itext/samples/sandbox/security/EncryptPdfWithoutUserPassword.cs##

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.