Secure PDF Documents

Contents
[ ]

Aspose.Cells provides PdfSecurityOptions for working with security. You can set owner and user passwords while saving to PDF. The owner password or user password will be required to open the encrypted PDF document for viewing.

  • The user password can be null or empty string, in this case no password will be required from the user when opening the PDF document.
  • Opening the PDF document with the correct owner password allows full access(without any access restrictions specified) to the document.
  • Opening the PDF document with the correct user password (or opening a document that does not have a user password) allows limited access as the permissions specified.

The sample code below describes how to create secured PDF files with Aspose.Cells for Java API.