Skip to content

This free consulting project uses Aspose.PDF for .NET and allows you to encrypt/decrypt a PDF document by applying a password and setting different privileges to it. It is also a representation of API usage under .NET Core Framework.

Notifications You must be signed in to change notification settings

aspose-free-consulting/apply-encrypt-decrypt-password-in-pdf-using-.net-core

Repository files navigation

Apply Encryption, Decryption and Password to a PDF using Aspose.PDF for .NET [.NET Core]

This free consulting project uses Aspose.PDF to enable you to encrypt/decrypt PDF file using Aspose.PDF for .NET under .NET Core environment. It also showcases a functionality to set different privileges on a PDF document while saving it.

ScreenShots of Usage

Below is the main screen of the application which is annotated as well to describe functionality of each control:

encryptpdf

Load License File: You must have a valid license file before using the application. In case you do not have one, you can apply for a 30-days free temporary license to use and evaluate the API without any restriction.

Select a PDF File to Encrypt: The application uses a sample PDF document (Sample.pdf) which is also available in the project but, you can use any PDF document.

Specify Privileges and Password: This section would allow you to specify password for the PDF and different privileges options as per your needs.

Output PDF Document: After pressing "Encrypt PDF" Button, application will produce an output PDF document with all options and password set. Following images show how PDF properties look like before and after applying the encryption.

Before

After

Interested in Aspose free consulting project?

If you are also interested in a free consulting project by Aspose team then please view details on this page

If you have any questions about Aspose APIs, please feel free to post your query in Aspose file format APIs Forums.

Also, you can keep in touch with the latest developments in file format APIs offered by Aspose at our Blog.

This free consulting project is based on the following issue:

I want to apply encrypt decrypt password in adpose pdf in dot net Core. Is it feasible to set privilege? github.com/aspose-free-consulting/projects/issues/67