PoDoFo  0.9.4
Public Member Functions | List of all members
PoDoFo::PdfImmediateWriter Class Reference

#include <PdfImmediateWriter.h>

Inheritance diagram for PoDoFo::PdfImmediateWriter:
PoDoFo::PdfWriter PoDoFo::PdfVecObjects::Observer PoDoFo::PdfVecObjects::StreamFactory

Public Member Functions

 PdfImmediateWriter (PdfOutputDevice *pDevice, PdfVecObjects *pVecObjects, const PdfObject *pTrailer, EPdfVersion eVersion=ePdfVersion_1_5, PdfEncrypt *pEncrypt=NULL, EPdfWriteMode eWriteMode=ePdfWriteMode_Default)
 
EPdfWriteMode GetWriteMode () const
 
EPdfVersion GetPdfVersion () const
 

Detailed Description

A kind of PdfWriter that writes objects with streams immediately to a PdfOutputDevice

Constructor & Destructor Documentation

PoDoFo::PdfImmediateWriter::PdfImmediateWriter ( PdfOutputDevice pDevice,
PdfVecObjects pVecObjects,
const PdfObject pTrailer,
EPdfVersion  eVersion = ePdfVersion_1_5,
PdfEncrypt pEncrypt = NULL,
EPdfWriteMode  eWriteMode = ePdfWriteMode_Default 
)

Create a new PdfWriter that writes objects with streams immediately to a PdfOutputDevice

This has the advantage that large documents can be created without having to keep the whole document in memory.

Parameters
pDeviceall stream streams are immediately written to this output device while the document is created.
pVecObjectsa vector of objects containing the objects which are written to disk
pTrailerthe trailer object
eVersionthe PDF version of the document to write. The PDF version can only be set in the constructor as it is the first item written to the document on disk.
pEncryptpointer to an encryption object or NULL. If not NULL the PdfEncrypt object will be copied and used to encrypt the created document.
eWriteModeadditional options for writing the pdf

Member Function Documentation

EPdfVersion PoDoFo::PdfImmediateWriter::GetPdfVersion ( ) const
inline

Get the PDF version of the document The PDF version can only be set in the constructor as it is the first item written to the document on disk

Returns
EPdfVersion version of the pdf document
EPdfWriteMode PoDoFo::PdfImmediateWriter::GetWriteMode ( ) const
inline

Get the write mode used for wirting the PDF

Returns
the write mode