Aspose::Pdf::Document::Encrypt method
Contents
[
Hide
]Document::Encrypt(System::String, System::String, Aspose::Pdf::Permissions, Aspose::Pdf::CryptoAlgorithm) method
Encrypts the document. Call then Save to get encrypted version of the document.
void Aspose::Pdf::Document::Encrypt(System::String userPassword, System::String ownerPassword, Aspose::Pdf::Permissions permissions, Aspose::Pdf::CryptoAlgorithm cryptoAlgorithm)
Parameter | Type | Description |
---|---|---|
userPassword | System::String | User password. |
ownerPassword | System::String | Owner password. |
permissions | Aspose::Pdf::Permissions | Document permissions, see Permissions for details. |
cryptoAlgorithm | Aspose::Pdf::CryptoAlgorithm | Cryptographic algorithm, see CryptoAlgorithm for details. |
See Also
- Enum Permissions
- Enum CryptoAlgorithm
- Class Document
- Namespace Aspose::Pdf
- Library Aspose.PDF for C++
Document::Encrypt(System::String, System::String, Aspose::Pdf::Permissions, Aspose::Pdf::CryptoAlgorithm, bool) method
Encrypts the document. Call then Save to get encrypted version of the document.
void Aspose::Pdf::Document::Encrypt(System::String userPassword, System::String ownerPassword, Aspose::Pdf::Permissions permissions, Aspose::Pdf::CryptoAlgorithm cryptoAlgorithm, bool usePdf20)
Parameter | Type | Description |
---|---|---|
userPassword | System::String | User password. |
ownerPassword | System::String | Owner password. |
permissions | Aspose::Pdf::Permissions | Document permissions, see Permissions for details. |
cryptoAlgorithm | Aspose::Pdf::CryptoAlgorithm | Cryptographic algorithm, see CryptoAlgorithm for details. |
usePdf20 | bool | Support for revision 6 (Extension 8). |
See Also
- Enum Permissions
- Enum CryptoAlgorithm
- Class Document
- Namespace Aspose::Pdf
- Library Aspose.PDF for C++
Document::Encrypt(System::String, System::String, System::SharedPtr<Facades::DocumentPrivilege>, Aspose::Pdf::CryptoAlgorithm, bool) method
Encrypts the document. Call then Save to get encrypted version of the document.
void Aspose::Pdf::Document::Encrypt(System::String userPassword, System::String ownerPassword, System::SharedPtr<Facades::DocumentPrivilege> privileges, Aspose::Pdf::CryptoAlgorithm cryptoAlgorithm, bool usePdf20)
Parameter | Type | Description |
---|---|---|
userPassword | System::String | User password. |
ownerPassword | System::String | Owner password. |
privileges | System::SharedPtr<Facades::DocumentPrivilege> | Document permissions, see Permissions for details. |
cryptoAlgorithm | Aspose::Pdf::CryptoAlgorithm | Cryptographic algorithm, see CryptoAlgorithm for details. |
usePdf20 | bool | Support for revision 6 (Extension 8). |
See Also
- Class DocumentPrivilege
- Enum CryptoAlgorithm
- Class Document
- Namespace Aspose::Pdf
- Library Aspose.PDF for C++