1#ifndef _C_DOCUMENT_ENCRYPTION_SETTINGS_H
2#define _C_DOCUMENT_ENCRYPTION_SETTINGS_H
UserAccessPermissionFlags
Available user access permission flags for the encrypted document.
Definition c_document_encryption_settings.h:28
@ UserAccessPermissionFlag_ModifyContents
Modify the contents of the document by operations other than those controlled by bits 6,...
Definition c_document_encryption_settings.h:47
@ UserAccessPermissionFlag_CopyAndExtract
(Security handlers of revision 2) Copy or otherwise extract text and graphics from the document,...
Definition c_document_encryption_settings.h:58
@ UserAccessPermissionFlag_PrintFaithful
(Security handlers of revision 3 or greater) Print the document to a representation from which a fait...
Definition c_document_encryption_settings.h:94
@ UserAccessPermissionFlag_None
No actions are allowed for the user.
Definition c_document_encryption_settings.h:33
@ UserAccessPermissionFlag_PrintDegraded
(Security handlers of revision 2) Print the document.
Definition c_document_encryption_settings.h:42
@ UserAccessPermissionFlag_ExtractText
(Security handlers of revision 3 or greater) Extract text and graphics (in support of accessibility t...
Definition c_document_encryption_settings.h:78
@ UserAccessPermissionFlag_AssembleDocument
(Security handlers of revision 3 or greater) Assemble the document (insert, rotate,...
Definition c_document_encryption_settings.h:85
@ UserAccessPermissionFlag_FillForms
(Security handlers of revision 3 or greater) Fill in existing interactive form fields (including sign...
Definition c_document_encryption_settings.h:71
@ UserAccessPermissionFlag_AddAnnotations
Add or modify text annotations, fill in interactive form fields, and, if bit 4 is also set,...
Definition c_document_encryption_settings.h:64
EncryptionAlgorithmType
Algorithm to be used for document encryption.
Definition c_document_encryption_settings.h:100
@ EncryptionAlgorithmType_AES
The AES (Advanced Encryption Standard) algorithm (beginning with PDF 1.6). AES is a symmetric block c...
Definition c_document_encryption_settings.h:130
@ EncryptionAlgorithmType_Undefined
Undefined unitialized default value, triggers error when used.
Definition c_document_encryption_settings.h:105
@ EncryptionAlgorithmType_RC4
A proprietary encryption algorithm known as RC4. RC4 is a symmetric stream cipher: the same algorithm...
Definition c_document_encryption_settings.h:121
@ EncryptionAlgorithmType_None
The application shall not decrypt data but shall direct the input stream to the security handler for ...
Definition c_document_encryption_settings.h:110
This file contains macro declarations for importing and exporting symbols from library boundaries.
This file contains all type forward declarations returned by the library API.
This file contains types and constants used as parameters or return values.
Represents memory stored data.
Group of settings controlling document's encryption and decryption.
error_type CALLING_CONVENTION DocumentEncryptionSettings_ToUnknown(DocumentEncryptionSettingsHandle *handle, IUnknownHandle **result)
Reinterpret current object as IUnknownHandle.
error_type CALLING_CONVENTION DocumentEncryptionSettings_GetKeyLength(DocumentEncryptionSettingsHandle *handle, integer_type *result)
Length of the key for document encryption.
error_type CALLING_CONVENTION DocumentEncryptionSettings_GetOwnerPassword(DocumentEncryptionSettingsHandle *handle, BufferHandle **result)
Owner password to be used for document encryption.
error_type CALLING_CONVENTION DocumentEncryptionSettings_SetOwnerPassword(DocumentEncryptionSettingsHandle *handle, BufferHandle *owner_password)
Owner password to be used for document encryption.
error_type CALLING_CONVENTION DocumentEncryptionSettings_GetAlgorithm(DocumentEncryptionSettingsHandle *handle, EncryptionAlgorithmType *result)
Algorithm to be used for document encryption.
error_type CALLING_CONVENTION DocumentEncryptionSettings_Create(DocumentEncryptionSettingsHandle **result)
Creates a new DocumentEncryptionSettings instance.
error_type CALLING_CONVENTION DocumentEncryptionSettings_SetKeyLength(DocumentEncryptionSettingsHandle *handle, integer_type key_length)
Length of the key for document encryption.
error_type CALLING_CONVENTION DocumentEncryptionSettings_SetAlgorithm(DocumentEncryptionSettingsHandle *handle, EncryptionAlgorithmType encryption_algorithm)
Algorithm to be used for document encryption.
error_type CALLING_CONVENTION DocumentEncryptionSettings_SetUserPassword(DocumentEncryptionSettingsHandle *handle, BufferHandle *user_password)
User password to be used for document encryption.
error_type CALLING_CONVENTION DocumentEncryptionSettings_SetUserAccessPermissions(DocumentEncryptionSettingsHandle *handle, UserAccessPermissionFlags user_permissions)
Permissions for user, when opening the document with user password.
error_type CALLING_CONVENTION DocumentEncryptionSettings_GetUserPassword(DocumentEncryptionSettingsHandle *handle, BufferHandle **result)
User password to be used for document encryption.
error_type CALLING_CONVENTION DocumentEncryptionSettings_GetUserAccessPermissions(DocumentEncryptionSettingsHandle *handle, UserAccessPermissionFlags *result)
Permissions for user, when opening the document with user password.
error_type CALLING_CONVENTION DocumentEncryptionSettings_FromUnknown(IUnknownHandle *handle, DocumentEncryptionSettingsHandle **result)
Convert IUnknownHandle to DocumentEncryptionSettingsHandle.
error_type CALLING_CONVENTION DocumentEncryptionSettings_Release(DocumentEncryptionSettingsHandle *handle)
Decrement the internal reference counter.
Base class for reference counting.
uint32_t error_type
This is return value type of all API functions.
Definition c_types.h:25
int32_t integer_type
32-bit signed integer
Definition c_types.h:51