Hi all, Can anyone tell me what is wrong with this?
---------------------------------------------------------------- PdfReader reader = new PdfReader("template.pdf"); Document document = new Document(reader.getPageSize(1)); PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream("test.pdf")); document.open(); PdfContentByte cb = writer.getDirectContent(); document.newPage(); PdfImportedPage page1 = writer.getImportedPage(reader, 1); cb.addTemplate(page1, 0, 0); Font font = FontFactory.getFont(FontFactory.HELVETICA, 10); Phrase phrase1 = new Phrase(10.0f,"test one",font); Phrase phrase2 = new Phrase(10.0f,"test two",font); Phrase phrase3 = new Phrase(10.0f,"test three",font); ColumnText ct = new ColumnText(cb); ct.setSimpleColumn(60, 300, 100, 500, 15, Element.ALIGN_CENTER); ct.addText(phrase1); ct.addText(phrase2); ct.addText(phrase3); ct.go(); document.close(); ---------------------------------------------------------------- I get the message : PDF header signature not found. Apart from that no file is created. Thanks in advance Matthew ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions