Logo Search packages:      
Sourcecode: libpodofo version File versions  Download package

PoDoFo::PdfStreamedDocument::PdfStreamedDocument ( const char *  pszFilename,
EPdfVersion  eVersion = ePdfVersion_Default,
PdfEncrypt pEncrypt = NULL,
EPdfWriteMode  eWriteMode = ePdfWriteMode_Default 
)

Create a new PdfStreamedDocument. All data is written to a file immediately.

Parameters:
pszFilenameresulting PDF file
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

Definition at line 32 of file PdfStreamedDocument.cpp.

References Init().

    : m_pWriter( NULL ), m_pEncrypt( pEncrypt ), m_bOwnDevice( true )
{
    m_pDevice = new PdfOutputDevice( pszFilename );
    Init( m_pDevice, eVersion, pEncrypt, eWriteMode );
}

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index