Hello, I have a pdf template that I want to stamp with some data as well as a barcode. I generate the barcode and add it like:
Image image = buildBarcode(getBarcode()); PdfContentByte content = stamper.getOverContent(1); image.setAbsolutePosition(600f, 1100f); content.addImage(image); And it works, ehen I add the line: image2.setRotationDegrees(90); OR image2.setRotationDegrees(90); the barcode disapears but the pdf still generates. I also tried: Image image = buildBarcode(getBarcode()); PdfContentByte content = stamper.getOverContent(1); float a = (float)Math.cos( 90 * (float)Math.PI / 180) * image.getScaledHeight(); float b = (float)Math.sin( 90 * (float)Math.PI / 180) * image.getScaledWidth(); float c = -(float)Math.sin( 90 * (float)Math.PI / 180) * image.getScaledHeight(); float d = (float)Math.cos( 90 * (float)Math.PI / 180) * image.getScaledWidth(); content.addImage(image2, a, b, c, d, 200, 200); which also still generates the pdf but does not show the barcode. Can someone please help with this. Thanks -- View this message in context: http://itext-general.2136553.n4.nabble.com/Rotate-barcode-tp3663198p3663198.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on "Lean Startup Secrets Revealed." This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev _______________________________________________ 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