Aspose::Pdf::Facades::PdfFileSecurity::TrySetPrivilege method
PdfFileSecurity::TrySetPrivilege method
Sets Pdf file security with original password. Does not throw an exception if process failed.
bool Aspose::Pdf::Facades::PdfFileSecurity::TrySetPrivilege(const System::String &userPassword, const System::String &ownerPassword, const System::SharedPtr<DocumentPrivilege> &privilege)
| Parameter | Type | Description |
|---|---|---|
| userPassword | const System::String& | Original user password. |
| ownerPassword | const System::String& | Original owner password. |
| privilege | const System::SharedPtr<DocumentPrivilege>& | Set privilege. |
ReturnValue
True for success, or false.
See Also
- Class String
- Typedef SharedPtr
- Class DocumentPrivilege
- Class PdfFileSecurity
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++