I'm using PdfGraphics2D to draw some rectangles filled with patterns via a TexturePaint. For some pattern images, it works flawlessly. For others, the image is not drawn and no error is thrown/printed. The images are simple PNGs. It's always the same image that fails but there doesn't appear to be any significant difference between an image that works and an image that doesn't except for dimensions and filename. I've filed a bug with a test case that reproduces the problem for me: http://sourceforge.net/tracker/?func=detail&aid=2839365&group_id=15255&atid=115255
I was wondering if anyone here has run into similar problems? The only workaround I've been able to come up with is to render the whole diagram to a BufferedImage and then add that image to the PDF page. So it becomes a page with a single big image on it. The problem is it looks ugly and sucks up a lot of memory as you have to keep each page around as a BufferedImage. Cheers, Josh -- View this message in context: http://www.nabble.com/TexturePaint-failing-for-some-images-tp25134435p25134435.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/