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

void PoDoFo::PdfMemDocument::DeletePages ( int  inFirstPage,
int  inNumPages 
)

Deletes one or more pages from this document It does NOT remove any PdfObjects from memory - just the reference from the pages tree. If you want to delete resources of this page, you have to delete them yourself, but the resources might be used by other pages, too.

Parameters:
inFirstPagethe first page number to delete (0-based)
inNumPagesthe number of pages to delete
Returns:
this document

Definition at line 301 of file PdfMemDocument.cpp.

References PoDoFo::PdfPagesTree::DeletePage(), and PoDoFo::PdfDocument::GetPagesTree().

Referenced by InsertPages().

{
    for( int i = 0 ; i < inNumPages ; i++ )
    {
        this->GetPagesTree()->DeletePage( inFirstPage ) ;
    }
}

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