Hi Keith, Thank you very much for the advise, it is working like a charm.
Alexis On 8/27/2011 5:14 PM, Keith O wrote: > > Hi Alexis, > ---------------------------------------- >> Date: Sat, 27 Aug 2011 14:24:11 +0200 >> From: li...@bergue.net >> To: itext-questions@lists.sourceforge.net >> Subject: [iText-questions] Extracted images are upside-down >> >> Hi all, >> >> I am currently evaluating iTextSharp 5.1.1. > > The latest version is 5.1.2 >> I try to extract images from PDF built by a scanner with an IRenderListener >> as explained in this iText book. The scanner is always the same. It usually >> works fine but extracted images are sometimes upside-down although the >> source PDF is viewed correctly with all my PDF tools. Do i have missed a >> parameter or is it a bug ? Is it another way to do the same job ? >> >> Here is a PDF source sample, which fails with iTextSharp: >> http://www.numelex.be/alexis/upsidedown.pdf >> > > No bug - in your example PDF the **page** itself is rotated 180 degrees and > the image is extracted as-is. (upside-down) So to correct the problem you're > seeing, call: > reader.GetPageRotation(XX) > for each page in your PDF and then set the image rotation accordingly. > keith > ------------------------------------------------------------------------------ > EMC VNX: the world's simplest storage, starting under $10K > The only unified storage solution that offers unified management > Up to 160% more powerful than alternatives and 25% more efficient. > Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev > _______________________________________________ > iText-questions mailing list > iText-questions@lists.sourceforge.net > 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 > ------------------------------------------------------------------------------ EMC VNX: the world's simplest storage, starting under $10K The only unified storage solution that offers unified management Up to 160% more powerful than alternatives and 25% more efficient. Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net 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