fpdf_security_w.h
Go to the documentation of this file.
1 
27 #ifndef _FSPDF_SECURITY_W_H_
28 #define _FSPDF_SECURITY_W_H_
29 
100 #ifdef __cplusplus
101 extern "C" {
102 #endif
103 
104 /********************************************************************************/
105 /* Encryption */
106 /********************************************************************************/
161 FS_RESULT FSPDF_Security_StartPasswordEncryption(FSCRT_DOCUMENT document, FS_DWORD userPermissions,
162  const FSCRT_BSTR* userPassword, const FSCRT_BSTR* ownerPassword,
163  FS_INT32 cipher, FS_INT32 keyLen,
164  FS_BOOL encryptMetadata, FSCRT_FILE encryptedFile, FS_INT32 flag, FSCRT_PROGRESS* encryptProgress);
165 
212 FS_RESULT FSPDF_Security_StartCustomEncryption(FSCRT_DOCUMENT document,
213  const FSCRT_BSTR* filter, const FSCRT_BSTR* subFilter, const FSCRT_BSTR* encryptInfo,
214  FSPDF_SECURITYHANDLER* securityHandler,
215  FS_BOOL encryptMetadata, FSCRT_FILE encryptedFile, FS_INT32 flag, FSCRT_PROGRESS* encryptProgress);
216 
271  const FSCRT_BSTR* envelopes, FS_INT32 count, FS_INT32 cipher, const FSCRT_BSTR* encryptKey,
272  FS_BOOL encryptMetadata, FSCRT_FILE encryptedFile, FS_INT32 flag, FSCRT_PROGRESS* encryptProgress);
273 
309 FS_RESULT FSPDF_Security_SetFoxitDRMEncryptionParamValue(FSCRT_DOCUMENT document, const FSCRT_BSTR* key, const FSCRT_BSTR* str);
310 
367 FS_RESULT FSPDF_Security_StartFoxitDRMEncryption(FSCRT_DOCUMENT document, const FSCRT_BSTR* subFilter, FS_BOOL isOwner, FS_DWORD userPermissions,
368  FS_INT32 cipher, FS_INT32 keyLen, const FSCRT_BSTR* fileID, const FSCRT_BSTR* initialKey,
369  FS_BOOL encryptMetadata, FSCRT_FILE encryptedFile, FS_INT32 flag, FSCRT_PROGRESS* encryptProgress);
370 
425 FS_RESULT FSPDF_Security_StartRMSEncryption(FSCRT_DOCUMENT document,
426  const FSCRT_BSTR* publishLicense, const FSCRT_BSTR* serverEulList, FS_INT32 listCount, FS_INT32 irmVersion,
427  FS_BOOL encryptMetadata, FSCRT_FILE encryptedFile, FS_INT32 flag, FSCRT_PROGRESS* encryptProgress);
428 
429 #ifdef __cplusplus
430 };
431 #endif
432  /* group FPDFSECURITY */
434 
435 #endif /* _FSPDF_SECURITY_W_H_ */
436 
FS_RESULT FSPDF_Security_SetFoxitDRMEncryptionParamValue(FSCRT_DOCUMENT document, const FSCRT_BSTR *key, const FSCRT_BSTR *str)
Set string value of a key as encryption parameter for Foxit DRM encryption.
unsigned int FS_DWORD
32-bit unsigned integer.
Definition: fs_base_r.h:142
int FS_INT32
32-bit signed integer.
Definition: fs_base_r.h:175
FS_RESULT FSPDF_Security_StartRMSEncryption(FSCRT_DOCUMENT document, const FSCRT_BSTR *publishLicense, const FSCRT_BSTR *serverEulList, FS_INT32 listCount, FS_INT32 irmVersion, FS_BOOL encryptMetadata, FSCRT_FILE encryptedFile, FS_INT32 flag, FSCRT_PROGRESS *encryptProgress)
Start PDF document encryption by using Microsoft RMS.
FS_RESULT FSPDF_Security_StartFoxitDRMEncryption(FSCRT_DOCUMENT document, const FSCRT_BSTR *subFilter, FS_BOOL isOwner, FS_DWORD userPermissions, FS_INT32 cipher, FS_INT32 keyLen, const FSCRT_BSTR *fileID, const FSCRT_BSTR *initialKey, FS_BOOL encryptMetadata, FSCRT_FILE encryptedFile, FS_INT32 flag, FSCRT_PROGRESS *encryptProgress)
Start PDF document encryption by using Foxit DRM.
int FS_BOOL
Boolean type (This should be TRUE or FALSE).
Definition: fs_base_r.h:133
FS_RESULT FSPDF_Security_StartCertificateEncryption(FSCRT_DOCUMENT document, const FSCRT_BSTR *envelopes, FS_INT32 count, FS_INT32 cipher, const FSCRT_BSTR *encryptKey, FS_BOOL encryptMetadata, FSCRT_FILE encryptedFile, FS_INT32 flag, FSCRT_PROGRESS *encryptProgress)
Encrypt the PDF document by certificate.
Structure for byte string.
Definition: fs_base_r.h:611
FS_RESULT FSPDF_Security_StartCustomEncryption(FSCRT_DOCUMENT document, const FSCRT_BSTR *filter, const FSCRT_BSTR *subFilter, const FSCRT_BSTR *encryptInfo, FSPDF_SECURITYHANDLER *securityHandler, FS_BOOL encryptMetadata, FSCRT_FILE encryptedFile, FS_INT32 flag, FSCRT_PROGRESS *encryptProgress)
Start custom PDF Encryption, and the PDF document will be protected by non-standard security handler...
FS_RESULT FSPDF_Security_StartPasswordEncryption(FSCRT_DOCUMENT document, FS_DWORD userPermissions, const FSCRT_BSTR *userPassword, const FSCRT_BSTR *ownerPassword, FS_INT32 cipher, FS_INT32 keyLen, FS_BOOL encryptMetadata, FSCRT_FILE encryptedFile, FS_INT32 flag, FSCRT_PROGRESS *encryptProgress)
Start standard password encryption on a PDF document.
Structure for custom security handler.
Definition: fpdf_security_r.h:121
int FS_RESULT
Result code for functions in Foxit PDF SDK.
Definition: fs_base_r.h:160

Foxit Corporation