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

void PoDoFo::PdfPage::InitNewPage ( const PdfRect rSize ) [private]

Initialize a new page object. m_pContents must be initialized before calling this!

rSizepage size

Definition at line 86 of file PdfPage.cpp.

References PoDoFo::PdfDictionary::AddKey(), PoDoFo::PdfVariant::GetDictionary(), PoDoFo::PdfObject::GetIndirectKey(), PoDoFo::PdfElement::GetObject(), PoDoFo::PdfCanvas::GetProcSet(), and PoDoFo::PdfRect::ToVariant().

Referenced by PdfPage().

    PdfVariant mediabox;
    rSize.ToVariant( mediabox );
    this->GetObject()->GetDictionary().AddKey( "MediaBox", mediabox );

    // The PDF specification suggests that we send all available PDF Procedure sets
    this->GetObject()->GetDictionary().AddKey( "Resources", PdfObject( PdfDictionary() ) );

    m_pResources = this->GetObject()->GetIndirectKey( "Resources" );
    m_pResources->GetDictionary().AddKey( "ProcSet", PdfCanvas::GetProcSet() );

Here is the call graph for this function:

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index