Aspose::Pdf::Document::Encrypt method

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)
ParameterTypeDescription
userPasswordSystem::StringUser password.
ownerPasswordSystem::StringOwner password.
permissionsAspose::Pdf::PermissionsDocument permissions, see Permissions for details.
cryptoAlgorithmAspose::Pdf::CryptoAlgorithmCryptographic algorithm, see CryptoAlgorithm for details.

See Also

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)
ParameterTypeDescription
userPasswordSystem::StringUser password.
ownerPasswordSystem::StringOwner password.
permissionsAspose::Pdf::PermissionsDocument permissions, see Permissions for details.
cryptoAlgorithmAspose::Pdf::CryptoAlgorithmCryptographic algorithm, see CryptoAlgorithm for details.
usePdf20boolSupport for revision 6 (Extension 8).

See Also

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)
ParameterTypeDescription
userPasswordSystem::StringUser password.
ownerPasswordSystem::StringOwner password.
privilegesSystem::SharedPtr<Facades::DocumentPrivilege>Document permissions, see Permissions for details.
cryptoAlgorithmAspose::Pdf::CryptoAlgorithmCryptographic algorithm, see CryptoAlgorithm for details.
usePdf20boolSupport for revision 6 (Extension 8).

See Also