hi, this code works *perfect* with iText version 2.1.3 or 2.1.4:
--- Image img = Image.getInstance(Konstanten.GRAFIKPFAD_PDF + "Logo1.png"); img.scalePercent(65f); // (1) ct.showTextAligned(cb, Element.ALIGN_CENTER, new Phrase(new Chunk(img, 0f, 0f)), 421f, 362.25f, 0); img = Image.getInstance(Konstanten.GRAFIKPFAD_PDF + "Logo2.png"); img.scalePercent(24.8f); Phrase Logo_Text_Kombi = new Phrase(new Chunk(img, 0f, -25.25f)); Logo_Text_Kombi.add(new Chunk("-Report " + Jahr, FontFactory.getFont("c:\\WINDOWS\\Fonts\\arial.ttf", BaseFont.CP1252, BaseFont.EMBEDDED, 38.25f, Font.BOLDITALIC, new Color(95, 95, 95)))); // (2) ct.showTextAligned(cb, Element.ALIGN_CENTER, Logo_Text_Kombi, 421f, 254.75f, 0); // (3) ct.showTextAligned(cb, Element.ALIGN_CENTER, new Phrase(new Chunk(Land + " " + Monatsinterval + " " + Jahr, FontFactory.getFont("c:\\WINDOWS\\Fonts\\arial.ttf", BaseFont.CP1252, BaseFont.EMBEDDED, 38.25f, Font.BOLDITALIC, new Color(95, 95, 95)))), 421f, 144f, 0); --- In Version 2.1.5, 2.1.6 and 2.1.7 only the third showTextAligned creates a visible result and there are no exceptions thrown. The two phrases containing an image chunk are completely missing. regards, A.M. ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ 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/