browse this website. See here for
EO.Pdf fully supports PDF encryption. It can both read and write
encrypted PDF files.
Sample code to load/save encrypted PDF file:
>//Load inputFileName with password "1234"
PdfDocumentSecurity security = new PdfDocumentSecurity("1234");
PdfDocument doc = new PdfDocument(inputFileName, security);
//Set a new password "5678"
doc.Security.UserPassword = "5678";
//Save the PDF file
'Load inputFileName with password "1234"
Dim security As New PdfDocumentSecurity("1234")
Dim doc As New PdfDocument(inputFileName, security)
'Set a new password "5678"
doc.Security.UserPassword = "5678"
'Save the PDF file
The PDF encryption API not only can be used to password protect a PDF file, but can also be used
to restrict file permissions. For example, it can be used to disallow user from printing a PDF file.
Detailed documentation and sample code about this feature can be found in the
All features are explained in great details in the product documentation. It also
contains complete reference information for each type, property or method;
The download package contains a wide variety of samples with full C# and Visual
Basic.NET source code that demonstrate how to use different feature of the EO.Pdf
Still have questions? Post in our
or contact us
and we will answer them quickly.
Our turn around time is among the best in the industry.