I trying to make a PDF out of the DB object. I have used iText jars for this. I am using PdfContentByte cb = writer.getDirectContent(); to add the text. Aftre the text I have to add a table whihc I generated. There is no way I can add this to the cb object. So I have to add it to the document object. When I do so, table is coming on the top of the text. So I want to make this table position relative to the text in the document.
# cb.setFontAndSize(arial_bold, 18); # cb.showTextAligned(PdfContentByte.ALIGN_CENTER, sub_title , 250, 780, 0); # cb.showTextAligned(PdfContentByte.ALIGN_CENTER, underline , 250, 770, 0); # cb.setFontAndSize(arial_bold, 10); # cb.showTextAligned(PdfContentByte.ALIGN_CENTER, text1 , 250, 750, 0); # cb.showTextAligned(PdfContentByte.ALIGN_CENTER, text2 , 250, 740, 0); # cb.showTextAligned(PdfContentByte.ALIGN_CENTER, text3 , 250, 730, 0); # cb.setFontAndSize(arial_bold, 12); # cb.showTextAligned(PdfContentByte.ALIGN_CENTER, date , 250, 710, 0); # # ............................. # # # cb.endText(); # document.add(table); # # # # -- View this message in context: http://old.nabble.com/itext-table-positioning-tp26591064p26591064.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev _______________________________________________ iText-questions mailing list [email protected] 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/
