Шифрование
The Documentize PDF Security for .NET is a powerful tool designed to enhance the security of your PDF documents by providing encryption, decryption and signing capabilities. It ensures that your sensitive information remains confidential and protected from unauthorized access.
Как зашифровать PDF
Чтобы зашифровать PDF‑документ, выполните следующие шаги:
- Создайте экземпляр
EncryptOptionsс желаемыми пользовательским и владельским паролями. - Добавьте входной PDF‑файл с помощью метода
AddInput. - Добавьте выходной PDF‑файл с помощью метода
AddOutput. - Выполните шифрование с помощью метода
EncryptклассаPdfSecurity.
1// Create EncryptOptions object to set instructions
2var options = new EncryptOptions("123456", "qwerty");
3// Add input file path
4options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
5// Set output file path
6options.AddOutput(new FileData("path_to_result_pdf_file.pdf"));
7// Perform the process
8PdfSecurity.Encrypt(options);Ключевые возможности:
- Encrypt PDF Documents: Secure your PDF files by adding user and owner passwords.
- Automation: Integrate encryption and decryption into your .NET applications for automated workflows.
- Compliance: Ensure your documents meet industry standards for document security.