You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by Jens Kapitza <j....@schwarze-allianz.de> on 2012/06/05 14:55:38 UTC

Question about pdfDocument.getDocumentCatalog().getAllPages()

The call pdfDocument.getDocumentCatalog().getAllPages()

will return a list of PDPage and  PDPageNode couse of calling getAllKids


but most of the code just think it is a list of PDPage

as org.apache.pdfbox.util.Splitter

  Iterator iter = pages.iterator();
         while( iter.hasNext() )
         {
             PDPage page = (PDPage)iter.next();


so this would throw a exception?


is the PDPageNode the older API
and the PDPage the new replacement?

wouldn't it better to provide to functions?
or

check the COSObjectable?

--
Jens Kapitza