![]() Static String destination = "password-protected.pdf" #Pdfwriter getinstance pdfThe following example creates an encrypted password protected PDF document. When this option is specified, iText will not encrypt the meta-data. You can optionally add the PdfWriter.DO_NOT_ENCRYPT_METADATA option, using the bitwise ORing operator. Here are the encryption type options you can use. The last parameter is for the encryption type. PdfWriter.ALLOW_COPY | PdfWriter.ALLOW_PRINTING PDF Encryption You can optionally compose multiple permissions using the bitwise ORing operator. Otherwise, you can use any of the following permissions. When 0 is passed as a parameter, the user is only allowed to view the document. In the third argument of the setEncryption() method, we specify the allowed permissions.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |