Vanilla.PDF  2.0.0
Cross-platform toolkit for creating and modifying PDF documents
c_document.h
Go to the documentation of this file.
1#ifndef _C_DOCUMENT_H
2#define _C_DOCUMENT_H
3
7
8#ifdef __cplusplus
9extern "C"
10{
11#endif
12
33 VANILLAPDF_API error_type CALLING_CONVENTION Document_Open(string_type filename, DocumentHandle** result);
34
38 VANILLAPDF_API error_type CALLING_CONVENTION Document_OpenFile(FileHandle* holder, DocumentHandle** result);
39
43 VANILLAPDF_API error_type CALLING_CONVENTION Document_Create(string_type filename, DocumentHandle** result);
44
48 VANILLAPDF_API error_type CALLING_CONVENTION Document_CreateFile(FileHandle* holder, DocumentHandle** result);
49
53 VANILLAPDF_API error_type CALLING_CONVENTION Document_Save(DocumentHandle* handle, string_type filename);
54
58 VANILLAPDF_API error_type CALLING_CONVENTION Document_SaveFile(DocumentHandle* handle, FileHandle* file_handle);
59
63 VANILLAPDF_API error_type CALLING_CONVENTION Document_SaveIncremental(DocumentHandle* handle, string_type filename);
64
68 VANILLAPDF_API error_type CALLING_CONVENTION Document_SaveIncrementalFile(DocumentHandle* handle, FileHandle* file_handle);
69
73 VANILLAPDF_API error_type CALLING_CONVENTION Document_GetCatalog(DocumentHandle* handle, CatalogHandle** result);
74
78 VANILLAPDF_API error_type CALLING_CONVENTION Document_GetDocumentInfo(DocumentHandle* handle, DocumentInfoHandle** result);
79
89 VANILLAPDF_API error_type CALLING_CONVENTION Document_AppendDocument(DocumentHandle* handle, DocumentHandle* source);
90
94 VANILLAPDF_API error_type CALLING_CONVENTION Document_Sign(DocumentHandle* handle, FileHandle* destination, DocumentSignatureSettingsHandle* settings);
95
99 VANILLAPDF_API error_type CALLING_CONVENTION Document_AddEncryption(DocumentHandle* handle, DocumentEncryptionSettingsHandle* settings);
100
108 VANILLAPDF_API error_type CALLING_CONVENTION Document_RemoveEncryption(DocumentHandle* handle);
109
113 VANILLAPDF_API error_type CALLING_CONVENTION Document_ToUnknown(DocumentHandle* handle, IUnknownHandle** result);
114
118 VANILLAPDF_API error_type CALLING_CONVENTION Document_FromUnknown(IUnknownHandle* handle, DocumentHandle** result);
119
124 VANILLAPDF_API error_type CALLING_CONVENTION Document_Release(DocumentHandle* handle);
125
128#ifdef __cplusplus
129};
130#endif
131
132#endif /* _C_DOCUMENT_H */
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.
The root of a document's object hierarchy.
Group of settings controlling document's encryption and decryption.
Represents high-level file access handle.
error_type CALLING_CONVENTION Document_FromUnknown(IUnknownHandle *handle, DocumentHandle **result)
Convert IUnknownHandle to DocumentHandle.
error_type CALLING_CONVENTION Document_ToUnknown(DocumentHandle *handle, IUnknownHandle **result)
Reinterpret current object as IUnknownHandle.
error_type CALLING_CONVENTION Document_GetCatalog(DocumentHandle *handle, CatalogHandle **result)
Get document's catalog property.
error_type CALLING_CONVENTION Document_RemoveEncryption(DocumentHandle *handle)
Remove any existing encryption from the document.
error_type CALLING_CONVENTION Document_SaveIncrementalFile(DocumentHandle *handle, FileHandle *file_handle)
Save file state into new destination and create new section for all modifications done by user.
error_type CALLING_CONVENTION Document_GetDocumentInfo(DocumentHandle *handle, DocumentInfoHandle **result)
Get detailed document metadata.
error_type CALLING_CONVENTION Document_OpenFile(FileHandle *holder, DocumentHandle **result)
Opens a document using already existing file handle.
error_type CALLING_CONVENTION Document_AddEncryption(DocumentHandle *handle, DocumentEncryptionSettingsHandle *settings)
Encrypt the document using the specified settings.
error_type CALLING_CONVENTION Document_Save(DocumentHandle *handle, string_type filename)
Save file state into new destination.
error_type CALLING_CONVENTION Document_AppendDocument(DocumentHandle *handle, DocumentHandle *source)
Append another document's contents at the end of the file.
error_type CALLING_CONVENTION Document_SaveFile(DocumentHandle *handle, FileHandle *file_handle)
Save file state into new destination.
error_type CALLING_CONVENTION Document_SaveIncremental(DocumentHandle *handle, string_type filename)
Save file state into new destination and create new section for all modifications done by user.
error_type CALLING_CONVENTION Document_CreateFile(FileHandle *holder, DocumentHandle **result)
Creates a new document.
error_type CALLING_CONVENTION Document_Release(DocumentHandle *handle)
Decrement the internal reference counter.
error_type CALLING_CONVENTION Document_Open(string_type filename, DocumentHandle **result)
Opens a new document.
error_type CALLING_CONVENTION Document_Create(string_type filename, DocumentHandle **result)
Creates a new document.
error_type CALLING_CONVENTION Document_Sign(DocumentHandle *handle, FileHandle *destination, DocumentSignatureSettingsHandle *settings)
Digitally signs the document using specified settings.
Metadata for the document.
Group of settings controlling document's digital signature.
Represents low-level file access handle.
Base class for reference counting.
uint32_t error_type
This is return value type of all API functions.
Definition c_types.h:25
const char * string_type
C-Style string.
Definition c_types.h:82