

However, it only comes with a 30-day free trial after that you will have to pay for the service. This is definitely the most professional tool for this purpose, it will provide reliable protection with Attractive and friendly User interface. Method#1(Paid):Use Adobe Acrobat to Password Protect Your PDF File In this tutorial, we will tell you about both Paid and free methods, you can just choose the one which fits your needs best. The process is actually quite simple, however, the tools you need for this purpose come with a catch. You can easily password protect your PDF file so only the person who has the password will be able to see the PDF. However, with such wide adoption Privacy issues also arise, requiring proper protection. This is the reason why it is adopted by so many people. It comes with different features and functions, including Graphics, page order, Carpool working, etc. UserPassword = PDFEncryptionMode.RC128Bit,ĭim sourcePdfPassword As String = If(PDFFile.PDF files are quite common these days, being used for both business and personal use. New PDFFile(sourcePdf, sourcePdfPassword) String sourcePdfPassword = PDFFile.IsEncrypted(sourcePdf) ? : "" Private static void ProtectPdfFile(string destinationPdf, string sourcePdf) Check to make sure number of args is correct, files exist, etc. When setting the User password, you can specify either RC 40-bit or RC 128-bit encryption.īelow are some C#, VB, and Java code snippets that can be used to password protect PDF files. If both passwords are applied to a PDF, then either password can be used to to view the PDF document. Also known as the “Permissions password” in the Acrobat documentation. Owner password: not required to view the document, but is required to change permissions, such as copy content and print.Also known as a “Document open password” in the Acrobat documentation.

The usage of this password can encryption the PDF file. User password: required to view the PDF.

There are two types of PDF password protection: Using the PDFFile class also makes PDF encryption, decryption, and password protection just as easy! The PDFFile class is available for. In the “ Merge PDF Files – C#, VB, and Java Code” article, we described how to use the PDFFile class from the PDF SDK to merge multiple PDF files into one with just a couple lines of code.
