Page by Page is the correct method. However, yes, page content in a PDF can be complex
Which is why there is a bunch of code in iText to handle all that for you. Look at the ContentParser stuff... Leonard On 8/31/11 10:01 AM, "xraken" <[email protected]> wrote: >Hi, > >I am trying to extract images from a PDF using the approach that uses >reader.getXrefSize() and reader.getPdfObject(i). That works, in a way. > >Unfortunately the order in which they are returned does not reflect the >order they are used in the PDF. > >My next attempt was iterating over the pages and then trying to get the >image information from them. That did not work. I was unable to find the >images in the mess that are the various dictionaries. > >So my question now is how to get the images (only one per page) in the >correct order. While trying to find a solution I already noticed that PDF >can be rather complex. But I am still hopeful that there is a way that >works >for most standard cases, that I just haven't found yet. > >Any help is appreciated. > > >Cheers, > >Ken > >-- >View this message in context: >http://itext-general.2136553.n4.nabble.com/Extract-images-in-correct-order >-tp3781049p3781049.html >Sent from the iText - General mailing list archive at Nabble.com. > >-------------------------------------------------------------------------- >---- >Special Offer -- Download ArcSight Logger for FREE! >Finally, a world-class log management solution at an even better >price-free! And you'll get a free "Love Thy Logs" t-shirt when you >download Logger. Secure your free ArcSight Logger TODAY! >http://p.sf.net/sfu/arcsisghtdev2dev >_______________________________________________ >iText-questions mailing list >[email protected] >https://lists.sourceforge.net/lists/listinfo/itext-questions > >iText(R) is a registered trademark of 1T3XT BVBA. >Many questions posted to this list can (and will) be answered with a >reference to the iText book: http://www.itextpdf.com/book/ >Please check the keywords list before you ask for examples: >http://itextpdf.com/themes/keywords.php ------------------------------------------------------------------------------ Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free "Love Thy Logs" t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
