iDRS™ SDK 16
Loading...
Searching...
No Matches
CEncryptionOptions_interface.h
Go to the documentation of this file.
1
7#ifndef CENCRYPTIONOPTIONS_INTERFACE_H
8
9#define CENCRYPTIONOPTIONS_INTERFACE_H
10
11#include "CObjPtr_interface.h"
13
14#include "idrs_common.h"
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
27CEncryptionOptions CEncryptionOptions_Create(enum EncryptionAlgorithm const evEncryptionAlgorithm, idrs_exception *pargException);
28
36enum EncryptionAlgorithm CEncryptionOptions_GetEncryptionLevel(const CEncryptionOptions argCEncryptionOptions, idrs_exception *pargException);
37
50void CEncryptionOptions_SetUserPassword(CEncryptionOptions argCEncryptionOptions, const idrs_string strUserPassword, idrs_exception *pargException);
51
59const idrs_string CEncryptionOptions_GetUserPassword(const CEncryptionOptions argCEncryptionOptions, idrs_exception *pargException);
60
72void CEncryptionOptions_SetOwnerPassword(CEncryptionOptions argCEncryptionOptions, const idrs_string strOwnerPassword, idrs_exception *pargException);
73
81const idrs_string CEncryptionOptions_GetOwnerPassword(const CEncryptionOptions argCEncryptionOptions, idrs_exception *pargException);
82
90void CEncryptionOptions_SetPrintPermission(CEncryptionOptions argCEncryptionOptions, enum PrintPermission const evPrintPermission, idrs_exception *pargException);
91
99enum PrintPermission CEncryptionOptions_GetPrintPermission(const CEncryptionOptions argCEncryptionOptions, idrs_exception *pargException);
100
108void CEncryptionOptions_SetEditPermission(CEncryptionOptions argCEncryptionOptions, enum EditPermission const evEditPermission, idrs_exception *pargException);
109
117enum EditPermission CEncryptionOptions_GetEditPermission(const CEncryptionOptions argCEncryptionOptions, idrs_exception *pargException);
118
128void CEncryptionOptions_SetEnableContentCopy(CEncryptionOptions argCEncryptionOptions, IDRS_BOOL const bEnableContentCopy, idrs_exception *pargException);
129
137IDRS_BOOL CEncryptionOptions_GetEnableContentCopy(const CEncryptionOptions argCEncryptionOptions, idrs_exception *pargException);
138
147void CEncryptionOptions_SetEnableTextAccess(CEncryptionOptions argCEncryptionOptions, IDRS_BOOL const bEnableTextAccess, idrs_exception *pargException);
148
156IDRS_BOOL CEncryptionOptions_GetEnableTextAccess(const CEncryptionOptions argCEncryptionOptions, idrs_exception *pargException);
157
165void CEncryptionOptions_Destroy(CEncryptionOptions argCEncryptionOptions, idrs_exception *pargException);
166
167#ifdef __cplusplus
168}
169#endif /* __cplusplus */
170
171#endif /* CENCRYPTIONOPTIONS_INTERFACE_H */
IDRS_BOOL CEncryptionOptions_GetEnableContentCopy(const CEncryptionOptions argCEncryptionOptions, idrs_exception *pargException)
Gets the content copy flag.
const idrs_string CEncryptionOptions_GetUserPassword(const CEncryptionOptions argCEncryptionOptions, idrs_exception *pargException)
Gets the password required to open the document.
enum EditPermission CEncryptionOptions_GetEditPermission(const CEncryptionOptions argCEncryptionOptions, idrs_exception *pargException)
Gets the edit permission.
void CEncryptionOptions_SetOwnerPassword(CEncryptionOptions argCEncryptionOptions, const idrs_string strOwnerPassword, idrs_exception *pargException)
Sets the owner password for the pdf document, allowing full access to it without taking restrictions ...
void CEncryptionOptions_Destroy(CEncryptionOptions argCEncryptionOptions, idrs_exception *pargException)
Destroys a CEncryptionOptions handle.
void CEncryptionOptions_SetUserPassword(CEncryptionOptions argCEncryptionOptions, const idrs_string strUserPassword, idrs_exception *pargException)
Sets the password required to open the document. Please note that if the password length is more than...
void CEncryptionOptions_SetEditPermission(CEncryptionOptions argCEncryptionOptions, enum EditPermission const evEditPermission, idrs_exception *pargException)
Sets the edit permission for the pdf document.
const idrs_string CEncryptionOptions_GetOwnerPassword(const CEncryptionOptions argCEncryptionOptions, idrs_exception *pargException)
Gets the owner password required to change permissions of the document.
void CEncryptionOptions_SetPrintPermission(CEncryptionOptions argCEncryptionOptions, enum PrintPermission const evPrintPermission, idrs_exception *pargException)
Sets the print permission for the pdf document.
void CEncryptionOptions_SetEnableContentCopy(CEncryptionOptions argCEncryptionOptions, IDRS_BOOL const bEnableContentCopy, idrs_exception *pargException)
Sets a flag that allows or denies content copy.
CEncryptionOptions CEncryptionOptions_Create(enum EncryptionAlgorithm const evEncryptionAlgorithm, idrs_exception *pargException)
Create creates a CEncryptionOptions object.
void CEncryptionOptions_SetEnableTextAccess(CEncryptionOptions argCEncryptionOptions, IDRS_BOOL const bEnableTextAccess, idrs_exception *pargException)
Sets the text access enable flag.
IDRS_BOOL CEncryptionOptions_GetEnableTextAccess(const CEncryptionOptions argCEncryptionOptions, idrs_exception *pargException)
Gets the flag specifying whether text access is enabled or not.
enum EncryptionAlgorithm CEncryptionOptions_GetEncryptionLevel(const CEncryptionOptions argCEncryptionOptions, idrs_exception *pargException)
Gets the encryption level.
enum PrintPermission CEncryptionOptions_GetPrintPermission(const CEncryptionOptions argCEncryptionOptions, idrs_exception *pargException)
Gets the print permission.
Interface for CObjPtr wrapper.
Interface for EnumDefinitions wrapper.
EncryptionAlgorithm
The encryption levels.
Definition EnumDefinitions_interface.h:2769
EditPermission
Restrictions on output document edition.
Definition EnumDefinitions_interface.h:2848
PrintPermission
Restrictions on output document printing.
Definition EnumDefinitions_interface.h:2816
CEncryptionOptions manages the PDF Security parameters.
Class that handles a string of characters.
IDRS_INT IDRS_BOOL
A Boolean value.
Definition idrsstd_interface.h:37