Encrypting / Decrypting PDFs
These examples were written in answer to questions such as:
decryptpdf
##GITHUB:https://github.com/itext/itext-publications-examples-java/blob/master/src/main/java/com/itextpdf/samples/sandbox/security/DecryptPdf.java##
##GITHUB:https://github.com/itext/i7ns-samples/blob/master/itext/itext.samples/itext/samples/sandbox/security/DecryptPdf.cs##
decryptpdf2
##GITHUB:https://github.com/itext/itext-publications-examples-java/blob/master/src/main/java/com/itextpdf/samples/sandbox/security/DecryptPdf2.java##
##GITHUB:https://github.com/itext/i7ns-samples/blob/master/itext/itext.samples/itext/samples/sandbox/security/DecryptPdf2.cs##
decryptpdf3
##GITHUB:https://github.com/itext/itext-publications-examples-java/blob/master/src/main/java/com/itextpdf/samples/sandbox/security/DecryptPdf3.java##
##GITHUB:https://github.com/itext/i7ns-samples/blob/master/itext/itext.samples/itext/samples/sandbox/security/DecryptPdf3.cs##
encryptpdf
##GITHUB:https://github.com/itext/itext-publications-examples-java/blob/master/src/main/java/com/itextpdf/samples/sandbox/security/EncryptPdf.java##
##GITHUB:https://github.com/itext/i7ns-samples/blob/master/itext/itext.samples/itext/samples/sandbox/security/EncryptPdf.cs##
encryptpdfwithoutuserpassword
##GITHUB:https://github.com/itext/itext-publications-examples-java/blob/master/src/main/java/com/itextpdf/samples/sandbox/security/EncryptPdfWithoutUserPassword.java##
##GITHUB:https://github.com/itext/i7ns-samples/blob/master/itext/itext.samples/itext/samples/sandbox/security/EncryptPdfWithoutUserPassword.cs##
Resources
https://github.com/itext/i7js-examples/blob/develop/src/main/resources/pdfs/hello.pdf
https://github.com/itext/i7js-examples/blob/develop/src/main/resources/pdfs/hello_encrypted.pdf