Hi! I'm trying to add content to an existing page using the column text! I get an error when trying to do this? Am I missing something?
Error ============================== ColumnText.go with simulate==false and text==null. Code ============================== Document document = new Document(); try { BaseFont bf1 = BaseFont.createFont( "/Users/mathias/Desktop/OpenType/Belle.otf", "", BaseFont.EMBEDDED); PdfReader reader = new PdfReader("test.pdf"); PdfStamper stamper = new PdfStamper(reader, new FileOutputStream("HelloWorldStamped.pdf")); document.open(); PdfContentByte cb = stamper.getOverContent(0); Font font1 = new Font(bf1, 36); ColumnText ct = new ColumnText( cb ); ct.setSimpleColumn( 300 , 300, 50, 50 , 150, Element.ALIGN_CENTER ); ct.addElement( new Paragraph( "Mathias" , font1 ) ); ct.go(); stamper.close(); } catch (Exception e) { e.printStackTrace(); } document.close(); -- View this message in context: http://www.nabble.com/PdfStamper-and-ColumnText-tp15290963p15290963.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/