On 23/12/2011 19:56, valerykhyzhniy wrote: > 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?
A. You need to REGISTER on the iText mailing list if you want to get answers. See http://lowagie.com/itextml to find out what happens if you don't register, and see http://lowagie.com/rule1 to learn more about the rules. B. You need to READ the documentation. If you read chapter 5 of the book "iText in Action - Second Edition", you'll find out that you're doing at least two things wrong: 1. you use onStartPage() to add content; you shouldn't do this: use onEndPage(); 2. you add content to the Document object in a page event; the documentation tells you why you should use that object for READ-ONLY purposes. In short: you can solve your problem by reading chapter 5. ------------------------------------------------------------------------------ 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
