Vanilla.PDF  1.5.2
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 
4 #include "vanillapdf/c_export.h"
5 #include "vanillapdf/c_handles.h"
6 #include "vanillapdf/c_values.h"
7 
8 #ifdef __cplusplus
9 extern "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 */
error_type Document_AppendDocument(DocumentHandle *handle, DocumentHandle *source)
Append another document's contents at the end of the file.
error_type Document_GetCatalog(DocumentHandle *handle, CatalogHandle **result)
Get document's catalog property.
Metadata for the document.
error_type Document_ToUnknown(DocumentHandle *handle, IUnknownHandle **result)
Reinterpret current object as IUnknownHandle.
error_type Document_Release(DocumentHandle *handle)
Decrement the internal reference counter.
error_type Document_SaveIncremental(DocumentHandle *handle, string_type filename)
Save file state into new destination and create new section for all modifications done by user...
This file contains all type forward declarations returned by the library API.
error_type Document_Open(string_type filename, DocumentHandle **result)
Opens a new document.
error_type Document_Create(string_type filename, DocumentHandle **result)
Creates a new document.
const char * string_type
C-Style string.
Definition: c_types.h:82
error_type Document_GetDocumentInfo(DocumentHandle *handle, DocumentInfoHandle **result)
Get detailed document metadata.
error_type Document_CreateFile(FileHandle *holder, DocumentHandle **result)
Creates a new document.
error_type Document_OpenFile(FileHandle *holder, DocumentHandle **result)
Opens a document using already existing file handle.
error_type Document_FromUnknown(IUnknownHandle *handle, DocumentHandle **result)
Convert IUnknownHandle to DocumentHandle.
error_type Document_Sign(DocumentHandle *handle, FileHandle *destination, DocumentSignatureSettingsHandle *settings)
Digitally signs the document using specified settings.
uint32_t error_type
This is return value type of all API functions.
Definition: c_types.h:25
error_type Document_SaveIncrementalFile(DocumentHandle *handle, FileHandle *file_handle)
Save file state into new destination and create new section for all modifications done by user...
Represents high-level file access handle.
This file contains macro declarations for importing and exporting symbols from library boundaries...
Group of settings controlling document's digital signature.
error_type Document_Save(DocumentHandle *handle, string_type filename)
Save file state into new destination.
error_type Document_SaveFile(DocumentHandle *handle, FileHandle *file_handle)
Save file state into new destination.
This file contains types and constants used as parameters or return values.
Represents low-level file access handle.
The root of a document's object hierarchy.
Base class for reference counting.