This sample shows how to set up user access permissions for a PDF document using Docotic.Pdf library.
Only encrypted documents can have user access permissions set up.
When encrypting with a password, there are two password types: "user" and "owner" passwords. Opening a PDF document with an "owner" password allows you to do everything with it. Opening a PDF document with a "user" password allows only operations specified by the user access permissions.
User access permissions may disallow printing of the document, filling in form fields, and other operations.