Vanilla.PDF  1.6.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_ToUnknown(DocumentHandle* handle, IUnknownHandle** result);
100
104 VANILLAPDF_API error_type CALLING_CONVENTION Document_FromUnknown(IUnknownHandle* handle, DocumentHandle** result);
105
110 VANILLAPDF_API error_type CALLING_CONVENTION Document_Release(DocumentHandle* handle);
111
114#ifdef __cplusplus
115};
116#endif
117
118#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.
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_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_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