Hi,

we use PoDofo in a small project inspired by the tool pdfmerge.
We have problems with bookmarks when using the PDFDocument::Append method.
Not all bookmarks are copied.

To solve this issue we added in PDFDocument.cpp after the line 359

pRoot->InsertChild( new PdfOutlines( m_vecObjects.GetObject( ref ) ) );

following code:

PdfOutlineItem* pNext = pAppendRoot->First()->Next();
while( pNext ) {
        PdfReference ref( pNext->GetObject()->Reference().ObjectNumber() +
difference, pNext->GetObject()->Reference().GenerationNumber() );
pRoot->InsertChild( new PdfOutlines( m_vecObjects.GetObject( ref ) ) );
pNext = pNext->Next();
}

Hope this helps,
    Jasper
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to