Hi Ronny,

Thank you for the fix and test case. I commited the fix. Very good catch.

Cheers,
        Dominik

Am Wednesday 10 November 2010 schrieb [email protected]:
> Yes, I have a example pdf (see attached file):
> 
> The sample code shows this failure:
> PdfMemDocument sourceDoc;
> sourceDoc.Load("d:\\Dr_Gruenert_Word2003-podo.pdf");
> PdfPage* page1 = sourceDoc.GetPage(0); -> Return Object "1 0 R"
> PdfPage* page2 = sourceDoc.GetPage(1); -> Return also Object "1 0 R" thats
> wrong must be "14 0 R".
> 
> Regards Ronny.
> 
> 
> ----- Original Nachricht ----
> Von:     Dominik Seichter <[email protected]>
> An:      [email protected]
> Datum:   10.11.2010 13:52
> Betreff: Re: [Podofo-users] PdfPagesTree::GetPageNode does not work correct
> on structured page trees
> 
> > Do you have a testcase for this? Or an example PDF?
> > 
> > Am Wednesday 10 November 2010 schrieb [email protected]:
> > > Hi,
> > > 
> > > I have found out that podofo does not read pdf document with structured
> > > page trees (balanced page trees) correctly. I have debugged this and if
> > > you change the order of the code:
> > > ####
> > > // Skip a normal page
> > > 
> > >                     if(nPageNum > 0 )
> > >                     
> > >                         nPageNum--;
> > >                     
> > >                     if( 0 == nPageNum )
> > >                     {
> > >                     
> > >                         rLstParents.push_back( pParent );
> > >                         return pChild;
> > >                     
> > >                     }
> > > 
> > > ####
> > > IN
> > > #####
> > > if( 0 == nPageNum )
> > > {
> > > rLstParents.push_back( pParent );
> > > return pChild;
> > > }
> > > if(nPageNum > 0 )
> > > nPageNum--;
> > > ###
> > > 
> > > Can anyone confirm this ?
> > 
> > -------------------------------------------------------------------------
> > --
> > 
> > > --- The Next 800 Companies to Lead America's Growth: New Video
> > > Whitepaper David G. Thomson, author of the best-selling book
> > > "Blueprint to a Billion" shares his insights and actions to help
> > > propel your
> > > business during the next growth cycle. Listen Now!
> > > http://p.sf.net/sfu/SAP-dev2dev
> > > _______________________________________________
> > > Podofo-users mailing list
> > > [email protected]
> > > https://lists.sourceforge.net/lists/listinfo/podofo-users


-- 
Dominik Seichter - [email protected] - http://domseichter.blogspot.com
KRename  - http://www.krename.net  - Powerful batch renamer for KDE
KBarcode - http://www.kbarcode.net - Barcode and label printing
PoDoFo - http://podofo.sf.net - PDF generation and parsing library

Attachment: signature.asc
Description: This is a digitally signed message part.

------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to