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

Stream object represents compressed data inside document. More...

Inheritance diagram for StreamObjectHandle:
ObjectHandle IUnknownHandle
error_type CALLING_CONVENTION StreamObject_Create (StreamObjectHandle **result)
 Creates a new StreamObject instance.
 
error_type CALLING_CONVENTION StreamObject_GetHeader (StreamObjectHandle *handle, DictionaryObjectHandle **result)
 Return streams header dictionary.
 
error_type CALLING_CONVENTION StreamObject_SetHeader (StreamObjectHandle *handle, DictionaryObjectHandle *value)
 Set new streams header dictionary.
 
error_type CALLING_CONVENTION StreamObject_GetBodyRaw (StreamObjectHandle *handle, BufferHandle **result)
 Get uncompressed stream body.
 
error_type CALLING_CONVENTION StreamObject_GetBody (StreamObjectHandle *handle, BufferHandle **result)
 Get decompressed stream content.
 
error_type CALLING_CONVENTION StreamObject_SetBody (StreamObjectHandle *handle, BufferHandle *value)
 Set new stream content.
 
error_type CALLING_CONVENTION StreamObject_ToObject (StreamObjectHandle *handle, ObjectHandle **result)
 Reinterpret current object as ObjectHandle.
 
error_type CALLING_CONVENTION StreamObject_FromObject (ObjectHandle *handle, StreamObjectHandle **result)
 Convert ObjectHandle to StreamObjectHandle.
 
error_type CALLING_CONVENTION StreamObject_Release (StreamObjectHandle *handle)
 Decrement the internal reference counter.
 

Additional Inherited Members

- Public Member Functions inherited from ObjectHandle
error_type CALLING_CONVENTION Object_GetObjectType (ObjectHandle *handle, ObjectType *result)
 Get derived type of current object.
 
- Public Member Functions inherited from IUnknownHandle
error_type CALLING_CONVENTION IUnknown_AddRef (IUnknownHandle *handle)
 Increment the internal reference counter.
 

Detailed Description

Stream object represents compressed data inside document.

Examples
extract.c.

Friends And Related Symbol Documentation

◆ StreamObject_GetBodyRaw()

error_type CALLING_CONVENTION StreamObject_GetBodyRaw ( StreamObjectHandle * handle,
BufferHandle ** result )
related

Get uncompressed stream body.

This function is useful when the library cannot decompress or decrypt the stream data.

◆ StreamObject_SetBody()

error_type CALLING_CONVENTION StreamObject_SetBody ( StreamObjectHandle * handle,
BufferHandle * value )
related

Set new stream content.

This sets the decompressed content. Compression is done when the file is saved.

◆ StreamObject_Release()

error_type CALLING_CONVENTION StreamObject_Release ( StreamObjectHandle * 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: