Vanilla.PDF  2.0.0
Cross-platform toolkit for creating and modifying PDF documents
FileWriterHandle Class Reference

Implements serialization of Files to destination stream. More...

Inheritance diagram for FileWriterHandle:
IUnknownHandle
error_type CALLING_CONVENTION FileWriter_Create (FileWriterHandle **result)
 Create new FileWriter instance.
 
error_type CALLING_CONVENTION FileWriter_Write (FileWriterHandle *handle, FileHandle *source, FileHandle *destination)
 Save file state into new destination.
 
error_type CALLING_CONVENTION FileWriter_WriteIncremental (FileWriterHandle *handle, FileHandle *source, FileHandle *destination)
 Save file state into new destination and create new section for all modifications done by user.
 
error_type CALLING_CONVENTION FileWriter_Subscribe (FileWriterHandle *handle, FileWriterObserverHandle *observer)
 Subscribe a new observer to the file writer events.
 
error_type CALLING_CONVENTION FileWriter_Unsubscribe (FileWriterHandle *handle, FileWriterObserverHandle *observer)
 Unsubscribe existing observer from the file writer events.
 
error_type CALLING_CONVENTION FileWriter_ToUnknown (FileWriterHandle *handle, IUnknownHandle **result)
 Reinterpret current object as IUnknownHandle.
 
error_type CALLING_CONVENTION FileWriter_FromUnknown (IUnknownHandle *handle, FileWriterHandle **result)
 Convert IUnknownHandle to FileWriterHandle.
 
error_type CALLING_CONVENTION FileWriter_Release (FileWriterHandle *handle)
 Decrement the internal reference counter.
 

Additional Inherited Members

- Public Member Functions inherited from IUnknownHandle
error_type CALLING_CONVENTION IUnknown_AddRef (IUnknownHandle *handle)
 Increment the internal reference counter.
 

Detailed Description

Implements serialization of Files to destination stream.

Examples
write_custom.c.

Friends And Related Symbol Documentation

◆ FileWriter_Write()

error_type CALLING_CONVENTION FileWriter_Write ( FileWriterHandle * handle,
FileHandle * source,
FileHandle * destination )
related

Save file state into new destination.

Destination file will be overwritten if it exists.

◆ FileWriter_WriteIncremental()

error_type CALLING_CONVENTION FileWriter_WriteIncremental ( FileWriterHandle * handle,
FileHandle * source,
FileHandle * destination )
related

Save file state into new destination and create new section for all modifications done by user.

This method creates a new section with all modified objects. Whole file content preceeding new section will be preserved.

◆ FileWriter_Release()

error_type CALLING_CONVENTION FileWriter_Release ( FileWriterHandle * handle)
related

Decrement the internal reference counter.

When the internal counter reaches zero the object is deleted. Releasing already disposed object causes undefined behavior.

See also
IUnknown_Release

The documentation for this class was generated from the following file: