Document changes - modify the document contents except for document attributes. Copying - copy content from the document. High-quality printing - print the document in high fidelity. The PDF specification defines the permissions shown below: For example, you can configure an owner password and the “printing” permission when saving a document to make sure that users who don’t know that owner password can only print this document, but not modify it. When an owner password is set, you can configure some permissions. If you want to open a document with a user password programmatically, you can use the CPDFDocument.UnlockWithPassword(string password) API.Īn owner password (also known as a permissions password) requires a password to change permission settings. There are two ways to protect a document with passwords: A user password or an owner password.Ī user password (also known as an open password) requires a user to type a password to open the PDF. We will show you how to secure your PDF files programmatically. We came up with ways to lock our documents nowadays. Anytime you want to secure something, a lock can figure it out. With the rise of digital documents, most companies need to share some files with others while they also want to protect PDFs or other types of files from being reshared, copied, printed, or edited.