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

Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes

PoDoFo::PdfWriter Class Reference

#include <PdfWriter.h>

Inheritance diagram for PoDoFo::PdfWriter:
Inheritance graph
[legend]
Collaboration diagram for PoDoFo::PdfWriter:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void FillTrailerObject (PdfObject *pTrailer, pdf_long lSize, bool bPrevEntry, bool bOnlySizeKey) const
void GetByteOffset (PdfObject *pObject, pdf_long *pulOffset)
bool GetEncrypted () const
bool GetLinearized () const
EPdfVersion GetPdfVersion () const
const char * GetPdfVersionString () const
bool GetUseXRefStream () const
EPdfWriteMode GetWriteMode () const
 PdfWriter (PdfDocument *pDocument)
 PdfWriter (PdfParser *pParser)
 PdfWriter (PdfVecObjects *pVecObjects, const PdfObject *pTrailer)
void SetEncrypted (const PdfEncrypt &rEncrypt)
void SetLinearized (bool bLinearize)
void SetPdfVersion (EPdfVersion eVersion)
void SetUseXRefStream (bool bStream)
void SetWriteMode (EPdfWriteMode eWriteMode)
void Write (const char *pszFilename)
void Write (PdfOutputDevice *pDevice)
void WriteToBuffer (char **ppBuffer, pdf_long *pulLen)

Protected Member Functions

void CreateFileIdentifier (PdfString &identifier, const PdfObject *pTrailer) const PODOFO_LOCAL
 PdfWriter (PdfVecObjects *pVecObjects)
void PODOFO_LOCAL WritePdfHeader (PdfOutputDevice *pDevice)
void WritePdfObjects (PdfOutputDevice *pDevice, const PdfVecObjects &vecObjects, PdfXRef *pXref) PODOFO_LOCAL

Protected Attributes

bool m_bXRefStream
PdfString m_identifier
PdfEncryptm_pEncrypt
 If not NULL encrypt all strings and streams and create an encryption dictionary in the trailer.
PdfObjectm_pEncryptObj
 Used to temporarly store the encryption dictionary.
PdfObjectm_pTrailer
PdfVecObjectsm_vecObjects

Private Member Functions

PdfObjectCreateLinearizationDictionary () PODOFO_LOCAL
void FetchPagesTree ()
void FindCatalogDependencies (PdfObject *pCatalog, const PdfName &rName, TPdfReferenceList *pList, bool bWithDependencies) PODOFO_LOCAL
void ReorderObjectsLinearized (PdfObject *pLinearize, NonPublic::PdfHintStream *pHint, PdfPage *pPage, PdfObject **ppLast) PODOFO_LOCAL
void PODOFO_LOCAL WriteLinearized (PdfOutputDevice *pDevice)

Private Attributes

bool m_bLinearized
EPdfVersion m_eVersion
EPdfWriteMode m_eWriteMode
size_t m_lFirstInXRef
size_t m_lLinearizedLastOffset
size_t m_lLinearizedOffset
size_t m_lTrailerOffset
PdfPagesTreem_pPagesTree
PdfVecObjects m_vecLinearized

Detailed Description

The PdfWriter class writes a list of PdfObjects as PDF file. The XRef section (which is the required table of contents for any PDF file) is created automatically.

It does not know about pages but only about PdfObjects.

Most users will want to use PdfDocument.

Definition at line 52 of file PdfWriter.h.


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

Generated by  Doxygen 1.6.0   Back to index