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

Reply via email to