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

PdfObject * PoDoFo::PdfVecObjects::CreateObject ( const char *  pszType = NULL )

Creates a new object and inserts it into the vector. This function assigns the next free object number to the PdfObject.

pszTypeoptionall value of the /Type key of the object
PdfObject pointer to the new PdfObject

Definition at line 214 of file PdfVecObjects.cpp.

References GetNextFreeObject(), push_back(), and PoDoFo::PdfObject::SetOwner().

Referenced by PoDoFo::PdfColor::BuildColorSpace(), PoDoFo::PdfWriter::CreateLinearizationDictionary(), PoDoFo::PdfElement::CreateObject(), PagesTreeTest::CreateTestTreeCustom(), PoDoFo::PdfFontType1::EmbedFontFile(), PoDoFo::PdfFontTrueType::EmbedFontFile(), PoDoFo::PdfImmediateWriter::Finish(), PoDoFo::PdfContents::GetContentsForAppending(), PoDoFo::PdfNamesTree::GetRootNode(), PoDoFo::PdfFontSimple::Init(), PoDoFo::PdfDestination::PdfDestination(), PoDoFo::PdfDocument::PdfDocument(), PoDoFo::PdfElement::PdfElement(), PoDoFo::PdfFileStream::PdfFileStream(), PoDoFo::PdfXRefStream::PdfXRefStream(), PoDoFo::PdfImage::SetImageICCProfile(), and PoDoFo::PdfWriter::Write().

    PdfReference ref = this->GetNextFreeObject();
    PdfObject*  pObj = new PdfObject( ref, pszType );
    pObj->SetOwner( this );

    this->push_back( pObj );

    return pObj;

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