1. Products
  2.   PDF Security

PDF Security in C# .NET

Secure PDF documents with encryption, decryption and sign with Documentize

PDF Security in C#

Secure Your PDF Files in C# with PDF Security. This plugin lets you encrypt and decrypt documents to safeguard sensitive data, while also enabling you to add digital signatures and trusted timestamps for guaranteed authenticity. A simple, powerful solution for professionals who need confidence in every PDF they share. Whether you need to prevent unauthorized access or manage permissions with precision, this plugin ensures your documents remain confidential and compliant with industry standards.

Key Features

Lock your PDF documents with strong encryption when needed, preventing unauthorized access.

Open your encrypted PDF documents whenever needed to make the document publicly accessible.

Create a digital signature object with fully customizable settings. Set signature parameters, including certificate details, timestamp, signing reasons, and visual appearance (PageNumber, Visible, Contact and other). Add Timestamp to PDF documents. Ensure long-term document integrity and traceability. Enhances document security by verifying timestamps with a trusted server.

Getting Started

Why Choose PDF Security

  • Comprehensive Document Protection – Keep your PDFs safe from tampering, unauthorized viewing, and data breaches.
  • Ideal for businesses, law firms, healthcare providers, and any organization dealing with sensitive data.
  • Legally Binding Signatures – Meet compliance requirements for electronic document signing.
  • Enhanced Security – Prevent unauthorized modifications after signing.
  • Professional Appearance – Customize signature visuals to match your brand or document style.
  • Seamless .NET integration for simplified workflows.
  • Supported operating systems include Windows 7-11, and Windows Server 2003-2022, macOS (10.12+), and Linux.
  • Supported frameworks from 4.0 to 8.0.
  • Compatible with various Microsoft Visual Studio versions.
  • Detailed and high-quality documentation

How to Encrypt PDF Document

  • Create an instance of EncryptOptions with the desired passwords and permissions.
  • Set the input PDF file using the AddInput method.
  • Set the output PDF file using the AddOutput method.
  • Call PdfSecurity.Encrypt with the instance of EncryptOptions as parameter

Via .NET


How to Decrypt PDF Document

  • Create an instance of DecryptOptions with the necessary password.
  • Set the input PDF file using the AddInput method.
  • Set the output PDF file using the AddOutput method.
  • Call PdfSecurity.Decrypt with the instance of DecryptOptions as parameter

Via .NET


How to Sign PDF Document

  • Create an instance of SignOptions with the pfx file and the necessary password.
  • Set the input PDF file using the AddInput method.
  • Set the output PDF file using the AddOutput method.
  • Call PdfSecurity.Sign with the instance of SignOptions as parameter

Via .NET


How to add Timestamp to PDF Document

  • Create an instance of SignOptions with the pfx file and the necessary password.
  • Create an instance of TimestampOptions with the timestamp server url.
  • Set the input PDF file using the AddInput method.
  • Set the output PDF file using the AddOutput method.
  • Call PdfSecurity.Sign with the instance of SignOptions as parameter

Via .NET


Frequently Asked Questions

What is Documentize PDF Security for .NET?

Documentize PDF Security for .NET is a plugin designed to encrypt, decrypt and sign PDF documents within .NET applications. It ensures data protection by allowing you to set passwords and permissions on your PDF files. It also allows you to sign documents with a digital signature.

Can I set password when encrypting PDF documents?

Yes, you can set user and owner passwords.

How does PDF encryption support compliance efforts?

PDF encryption helps ensure that sensitive documents are protected, aiding compliance with regulations such as GDPR, HIPAA, and others that require securing personal or confidential data.

What are the best practices for PDF encryption?

When encrypting PDFs, it’s important to Use strong passwords, Store encryption keys securely to prevent unauthorized access.

Why should I use digital signatures for my PDFs?

Digital signatures verify the authenticity of a document, prevent unauthorized modifications, and help meet legal and compliance requirements for secure document handling.

Can I customize the display of a signature in a document?

Yes, you can customize the display of the signature. To do this, use the following properties Visible, PageNumber, Location, Rectangle and other.

Can I use a custom timestamp server for timestamping?

Yes, you can configure a custom timestamp server and provide authentication credentials in the TimestampOptions to meet your specific requirements.

Which industries benefit from using Documentize PDF Security?

Industries that handle sensitive information, such as healthcare, finance, and legal sectors, benefit from using Documentize PDF Security. For instance, encrypting medical records ensures compliance with HIPAA regulations in healthcare, while in finance, it protects sensitive client information.

Are there examples or documentation available to help me get started?

Yes, comprehensive documentation and code examples are available to guide you through integrating and using the plugin effectively. You can find step-by-step instructions and sample code on the official Documentize documentation site.

 English