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

void PoDoFo::PdfParser::ReadXRef ( pdf_long *  pXRefOffset ) [protected]

Looks for a startxref entry at the current file position and saves its byteoffset to pXRefOffset.

Parameters:
pXRefOffsetstore the byte offset of the xref section into this variable.

Definition at line 551 of file PdfParser.cpp.

References PoDoFo::ePdfError_NoXRef, FindToken(), PoDoFo::PdfTokenizer::GetNextNumber(), PoDoFo::PdfTokenizer::IsNextToken(), and PODOFO_RAISE_ERROR.

Referenced by ReadDocumentStructure().

{
    FindToken( "startxref", PDF_XREF_BUF );

    if( !this->IsNextToken( "startxref" ) )
    {
        PODOFO_RAISE_ERROR( ePdfError_NoXRef );
    }
    
    *pXRefOffset = this->GetNextNumber();
}

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