Vanilla.PDF  1.6.0
Cross-platform toolkit for creating and modifying PDF documents
c_file_writer_observer.h
Go to the documentation of this file.
1#ifndef _C_FILE_WRITER_OBSERVER_H
2#define _C_FILE_WRITER_OBSERVER_H
3
7
8#ifdef __cplusplus
9extern "C"
10{
11#endif
12
34
39
44
49
54
59
64
69
74
79
85 VANILLAPDF_API error_type CALLING_CONVENTION FileWriterObserver_CreateCustom(
90 FileWriterObserver_OnBeforeObjectOffsetRecalculation_Function on_before_object_offset_recalculation,
91 FileWriterObserver_OnAfterObjectOffsetRecalculation_Function on_after_object_offset_recalculation,
92 FileWriterObserver_OnBeforeEntryOffsetRecalculation_Function on_before_entry_offset_recalculation,
93 FileWriterObserver_OnAfterEntryOffsetRecalculation_Function on_after_entry_offset_recalculation,
96 void* user_data,
98
102 VANILLAPDF_API error_type CALLING_CONVENTION FileWriterObserver_ToUnknown(FileWriterObserverHandle* handle, IUnknownHandle** result);
103
107 VANILLAPDF_API error_type CALLING_CONVENTION FileWriterObserver_FromUnknown(IUnknownHandle* handle, FileWriterObserverHandle** result);
108
113 VANILLAPDF_API error_type CALLING_CONVENTION FileWriterObserver_Release(FileWriterObserverHandle* handle);
114
117#ifdef __cplusplus
118};
119#endif
120
121#endif /* _C_FILE_WRITER_OBSERVER_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.
Allows hooking on FileWriterHandle events.
error_type(* FileWriterObserver_OnInitializing_Function)(void *user_data, InputOutputStreamHandle *output_stream)
The first operation of the FileWriter.
Definition: c_file_writer_observer.h:33
error_type(* FileWriterObserver_OnBeforeOutputFlush_Function)(void *user_data, InputOutputStreamHandle *output_stream)
Invoked before the destination stream is flushed.
Definition: c_file_writer_observer.h:73
error_type(* FileWriterObserver_OnBeforeEntryOffsetRecalculation_Function)(void *user_data, XrefEntryHandle *entry)
Invoked before xref entry offset is recalculated.
Definition: c_file_writer_observer.h:63
error_type CALLING_CONVENTION FileWriterObserver_ToUnknown(FileWriterObserverHandle *handle, IUnknownHandle **result)
Reinterpret current object as IUnknownHandle.
error_type CALLING_CONVENTION FileWriterObserver_FromUnknown(IUnknownHandle *handle, FileWriterObserverHandle **result)
Convert IUnknownHandle to FileWriterObserverHandle.
error_type(* FileWriterObserver_OnAfterObjectOffsetRecalculation_Function)(void *user_data, ObjectHandle *object)
Invoked after new object offset is recalculated.
Definition: c_file_writer_observer.h:58
error_type(* FileWriterObserver_OnAfterOutputFlush_Function)(void *user_data, InputOutputStreamHandle *output_stream)
Invoked after the destination stream is flushed.
Definition: c_file_writer_observer.h:78
error_type(* FileWriterObserver_OnBeforeObjectWrite_Function)(void *user_data, ObjectHandle *object)
Invoked before every single object is written to the destination file.
Definition: c_file_writer_observer.h:43
error_type CALLING_CONVENTION FileWriterObserver_Release(FileWriterObserverHandle *handle)
Decrement the internal reference counter.
error_type(* FileWriterObserver_OnBeforeObjectOffsetRecalculation_Function)(void *user_data, ObjectHandle *object)
Invoked before new object offset is recalculated.
Definition: c_file_writer_observer.h:53
error_type CALLING_CONVENTION FileWriterObserver_CreateCustom(FileWriterObserver_OnInitializing_Function on_initializing, FileWriterObserver_OnFinalizing_Function on_finalizing, FileWriterObserver_OnBeforeObjectWrite_Function on_before_object_write, FileWriterObserver_OnAfterObjectWrite_Function on_after_object_write, FileWriterObserver_OnBeforeObjectOffsetRecalculation_Function on_before_object_offset_recalculation, FileWriterObserver_OnAfterObjectOffsetRecalculation_Function on_after_object_offset_recalculation, FileWriterObserver_OnBeforeEntryOffsetRecalculation_Function on_before_entry_offset_recalculation, FileWriterObserver_OnAfterEntryOffsetRecalculation_Function on_after_entry_offset_recalculation, FileWriterObserver_OnBeforeOutputFlush_Function on_before_output_flush, FileWriterObserver_OnAfterOutputFlush_Function on_after_output_flush, void *user_data, FileWriterObserverHandle **result)
Create a new FileWriterObserverHandle instance with custom callbacks.
error_type(* FileWriterObserver_OnAfterObjectWrite_Function)(void *user_data, ObjectHandle *object)
Invoked after every single object is written to the destination file.
Definition: c_file_writer_observer.h:48
error_type(* FileWriterObserver_OnAfterEntryOffsetRecalculation_Function)(void *user_data, XrefEntryHandle *entry)
Invoked after xref entry offset is recalculated.
Definition: c_file_writer_observer.h:68
error_type(* FileWriterObserver_OnFinalizing_Function)(void *user_data, InputOutputStreamHandle *output_stream)
The last operation of the FileWriter.
Definition: c_file_writer_observer.h:38
Base class for reference counting.
Input stream can read and interpret input from sequences of characters.
Base class for syntactic tokens.
Cross-reference entry represents item within XrefHandle.
uint32_t error_type
This is return value type of all API functions.
Definition: c_types.h:25