Quoting monojit <[EMAIL PROTECTED]>: > Hi Bruno > Here is the code I have written.But it doesnt generate any pages.
I see you created the PdfTemplate, but I don't see you adding the Template to the PdfContentByte. > In writeSelectedRows() method of PdfPTable i am trying to add the rows > to a template instead of PdfContentByte> is this approach ok? Yes. > PdfWriter writer=PdfWriter.getInstance(document, new > FileOutputStream("C:\\tmp\\generatedReports\\test.pdf")); > document.open(); > PdfContentByte cb=writer.getDirectContent(); > PdfTemplate tem=cb.createTemplate(200,200); > PdfPTable table=new PdfPTable(1); > PdfPCell cell=new PdfPCell(new Phrase("cell1")); > table.addCell(cell); > table.setTotalWidth(90); > table.writeSelectedRows(0,-1,100,400,tem); cb.addTemplate(tem, 1f, 0, 0, 1f, 0, 0); (adds it without rotating it) Bruno ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions