5 #ifndef PDFTRON_H_CPPSDFSecurityHandler
6 #define PDFTRON_H_CPPSDFSecurityHandler
299 operator bool () {
return mp_handler!=0;}
390 void InitPassword(
const char* password,
size_t pwd_length);
402 void InitPassword(
const std::vector<pdftron::UInt8>& password_buf);
432 TRN_SecurityHandler mp_handler;
443 #include <Impl/SDFDoc.inl>
445 #endif // PDFTRON_H_CPPSDFSecurityHandler
edit the document more than adding or modifying text notes.
void ChangeUserPassword(const char *password, size_t pwd_length)
void SetDerived(UInt32 overloaded_funct)
void ChangeMasterPasswordASCII(const char *password)
SecurityHandler & operator=(const SecurityHandler &)
SecurityHandler * GetDerived() const
size_t GetUserPasswordSize() const
virtual bool EditSecurityData(SDFDoc &doc)
bool GetPermission(Permission p)
void InitPassword(const char *password, size_t pwd_length)
open and decrypt the document.
const char * GetHandlerDocName() const
Use Crypt filters with 256-bit AES (Advanced Encryption Standard) algorithm.
allow changes to fill in forms
Use Crypt filters with 128-bit AES (Advanced Encryption Standard) algorithm.
bool IsUserPasswordRequired()
virtual bool Authorize(Permission p)
the user has 'owner' rights (e.g. rights to change the document's security settings).
size_t GetMasterPasswordSize() const
void ChangeMasterPassword(const char *password, size_t pwd_length)
void ChangeRevisionNumber(int rev_num)
virtual Obj FillEncryptDict(class SDFDoc &doc)
enable content extraction
virtual SecurityHandler * Clone(TRN_SecurityHandler base) const
virtual ~SecurityHandler()
virtual bool GetAuthorizationData(Permission req_opr)
const char * GetUserPassword()
void InitPasswordASCII(const char *password)
content access for the visually impaired.
void ChangeUserPasswordASCII(const char *password)
int GetEncryptionAlgorithmID() const
void SetModified(bool is_modified=true)
allow modifications to annotations
virtual void AuthorizeFailed()
void SetEncryptMetadata(bool encrypt_metadata)
bool IsMasterPasswordRequired()
const char * GetMasterPassword()
void SetPermission(Permission perm, bool value)