![]() |
Vanilla.PDF
2.0.0
Cross-platform toolkit for creating and modifying PDF documents
|
Allows hooking on FileWriterHandle events. More...
typedef error_type(* | FileWriterObserver_OnInitializing_Function) (void *user_data, InputOutputStreamHandle *output_stream) |
The first operation of the FileWriter. | |
typedef error_type(* | FileWriterObserver_OnFinalizing_Function) (void *user_data, InputOutputStreamHandle *output_stream) |
The last operation of the FileWriter. | |
typedef error_type(* | FileWriterObserver_OnBeforeObjectWrite_Function) (void *user_data, ObjectHandle *object) |
Invoked before every single object is written to the destination file. | |
typedef error_type(* | FileWriterObserver_OnAfterObjectWrite_Function) (void *user_data, ObjectHandle *object) |
Invoked after every single object is written to the destination file. | |
typedef error_type(* | FileWriterObserver_OnBeforeObjectOffsetRecalculation_Function) (void *user_data, ObjectHandle *object) |
Invoked before new object offset is recalculated. | |
typedef error_type(* | FileWriterObserver_OnAfterObjectOffsetRecalculation_Function) (void *user_data, ObjectHandle *object) |
Invoked after new object offset is recalculated. | |
typedef error_type(* | FileWriterObserver_OnBeforeEntryOffsetRecalculation_Function) (void *user_data, XrefEntryHandle *entry) |
Invoked before xref entry offset is recalculated. | |
typedef error_type(* | FileWriterObserver_OnAfterEntryOffsetRecalculation_Function) (void *user_data, XrefEntryHandle *entry) |
Invoked after xref entry offset is recalculated. | |
typedef error_type(* | FileWriterObserver_OnBeforeOutputFlush_Function) (void *user_data, InputOutputStreamHandle *output_stream) |
Invoked before the destination stream is flushed. | |
typedef error_type(* | FileWriterObserver_OnAfterOutputFlush_Function) (void *user_data, InputOutputStreamHandle *output_stream) |
Invoked after the destination stream is flushed. | |
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 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 CALLING_CONVENTION | FileWriterObserver_Release (FileWriterObserverHandle *handle) |
Decrement the internal reference counter. | |
Additional Inherited Members | |
![]() | |
error_type CALLING_CONVENTION | IUnknown_AddRef (IUnknownHandle *handle) |
Increment the internal reference counter. | |
![]() | |
error_type CALLING_CONVENTION | IUnknown_Release (IUnknownHandle *handle) |
Decrement the internal reference counter. | |
Allows hooking on FileWriterHandle events.
|
related |
Create a new FileWriterObserverHandle instance with custom callbacks.
Callbacks can be set to NULL, if there is no action associated with them
|
related |
Decrement the internal reference counter.
When the internal counter reaches zero the object is deleted. Releasing already disposed object causes undefined behavior.