This example encrypts a document with 40-bit, allowing the user to print the document and display it as an inline document. The user needs a user password to open the PDF file.
This example encrypts a document with 128bit, allowing the user to print the document in high quality and to extract/copy text and images. The user does not require a password to open the document. The encrypted file will be offered to the client for downloading. In addition, the document will also be streamed.
This example uses the caching function of the API.