Hi!
Help me.
I try to write a table to the document. But every page can to have the same
upper part. I use PdfPageEventHelper.onStartPage() or onEndPage(). But last
one row of the table to print at the next page. What i need to use for this?
This is code to add one row as a table to the document. docTable contains 6
String values.
private PdfPTable insertTable(List<DocTable> listDocTable) {
try {
for (DocTable docTable : listDocTable) {
table = new
PdfPTable(listDocTable.get(0).getListDocColumn().size());
table.setWidthPercentage(100);
insertColumn(docTable);
document.add(table);
}
} catch (DocumentException ex) {
Logger.getLogger(PDFGenerator.class.getName()).log(Level.SEVERE,
null, ex);
}
return table;
}
This is even code:
class PageFooter extends PdfPageEventHelper {
public void onStartPage(PdfWriter writer, Document document) {
insertRows(listDocRow);
}
} http://itext-general.2136553.n4.nabble.com/file/n4229511/pic.jpg
help me please!
--
View this message in context:
http://itext-general.2136553.n4.nabble.com/Question-about-PdfPageEventHelper-onStartPage-tp4229511p4229511.html
Sent from the iText - General mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create
new or port existing apps to sell to consumers worldwide. Explore the
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
iText-questions mailing list
[email protected]
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