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

PoDoFo::PdfDocument::PdfDocument (  ) [protected]

Construct a new (empty) PdfDocument

Definition at line 56 of file PdfDocument.cpp.

References PoDoFo::PdfDictionary::AddKey(), PoDoFo::PdfVecObjects::CreateObject(), PoDoFo::PdfVariant::GetDictionary(), PoDoFo::PdfElement::GetObject(), InitPagesTree(), PoDoFo::PdfObject::Reference(), PoDoFo::PdfObject::SetOwner(), and PoDoFo::PdfVecObjects::SetParentDocument().

    : m_fontCache( &m_vecObjects ), m_pOutlines( NULL ), 
      m_pNamesTree( NULL ), m_pPagesTree( NULL ), 
      m_pAcroForms( NULL )
    m_vecObjects.SetParentDocument( this );

    m_pTrailer = new PdfObject(); // The trailer is NO part of the vector of objects
    m_pTrailer->SetOwner( &m_vecObjects );
    m_pCatalog = m_vecObjects.CreateObject( "Catalog" );

    m_pInfo = new PdfInfo( &m_vecObjects );

    m_pTrailer->GetDictionary().AddKey( "Root", m_pCatalog->Reference() );
    m_pTrailer->GetDictionary().AddKey( "Info", m_pInfo->GetObject()->Reference() );


Here is the call graph for this function:

Generated by  Doxygen 1.6.0   Back to index