1T3XT info wrote: >Ask the reader for the total number of pages read after you created the >reader instance: >int pageCt = reader.getNumberOfPages(); >Rectangle pagesize = reader.getPageSizeWithRotation(1);
You talk about a reader object but in my case I just have the stamper, the columntext and the contentbyte of the stamper something like: cb = stamper.getOverContent(pageCount); ct = new ColumnText(cb); ct.setAlignment(Element.ALIGN_CENTER); ct.setSimpleColumn(36, 36, PageSize.A4.width()-36, PageSize.A4.height()-300); ct.addElement(tableMainHeader); ct.go(); which will only add the first page. there is currently no reader object containnig the information how many pages the collumntest object needs! >You have a loop where you're adding the column. As long as there's more >content in the ColumnText object, do: >stamper.insertPage(++pageCt, pagesize); >Don't forget to update the Y-line of your column text object, or you'll >create an endless loop. I am not sure about the loop design although i think I should retrieve the "more text" information via int status = ct.go(true); (with which i have to add the content again afterwards) I have read the pages in the book couple of time but i dun really get on with it as there is no exaple where you work with the stamper object adding content to multiple pages starting with a given first page. regards stephan ______________________________________________________ GRATIS für alle WEB.DE-Nutzer: Die maxdome Movie-FLAT! Jetzt freischalten unter http://movieflat.web.de ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ 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/
