Aspose::Pdf::Facades::PdfFileSecurity::SetPrivilege метод
Содержание
[
Скрывать
]PdfFileSecurity::SetPrivilege(const System::SharedPtr<DocumentPrivilege>&) method
Устанавливает безопасность файла Pdf с пустыми паролями пользователя/владельца. Пароль владельца будет добавлен случайной строкой. Выбрасывает исключение, если процесс завершился с ошибкой.
bool Aspose::Pdf::Facades::PdfFileSecurity::SetPrivilege(const System::SharedPtr<DocumentPrivilege> &privilege)
| Параметр | Тип | Описание |
|---|---|---|
| привилегия | const System::SharedPtr<DocumentPrivilege>& | Установить привилегию. |
ReturnValue
True при успехе.
См. также
- Typedef SharedPtr
- Class DocumentPrivilege
- Class PdfFileSecurity
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++
PdfFileSecurity::SetPrivilege(const System::String&, const System::String&, const System::SharedPtr<DocumentPrivilege>&) method
Устанавливает безопасность файла Pdf с оригинальным паролем. Выбрасывает исключение, если процесс завершился с ошибкой.
bool Aspose::Pdf::Facades::PdfFileSecurity::SetPrivilege(const System::String &userPassword, const System::String &ownerPassword, const System::SharedPtr<DocumentPrivilege> &privilege)
| Параметр | Тип | Описание |
|---|---|---|
| userPassword | const System::String& | Исходный пароль пользователя. |
| ownerPassword | const System::String& | Исходный пароль владельца. |
| привилегия | const System::SharedPtr<DocumentPrivilege>& | Установить привилегию. |
ReturnValue
True при успехе.
См. также
- Class String
- Typedef SharedPtr
- Class DocumentPrivilege
- Class PdfFileSecurity
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++