Vanilla.PDF  1.5.1
Cross-platform toolkit for creating and modifying PDF documents
List of all members
FileWriterHandle Class Reference

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

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

Additional Inherited Members

- Public Member Functions inherited from IUnknownHandle
error_type 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 Function Documentation

◆ FileWriter_Write()

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

Save file state into new destination.

Destination file will be overwritten if it exists.

Examples:
write_custom.c.

◆ FileWriter_WriteIncremental()

error_type 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 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
Examples:
write_custom.c.

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