Ken wrote:

> I want to print a running footer with 3 rows of text, plus the "Page X 
> of Y". I've copied the tutorial code and the "Page X of Y" prints 
> fine, but I only get 2 footer rows, even when I call setFooterRows() 
> or sethHeaderRows() on my footer. I've also tried adjusting the bottom 
> margin in 
>
> foot.writeSelectedRows(0, -1, document.leftMargin(), 
> document.bottomMargin(),
>                     writer.getDirectContent());  
>
> but that cause the first of the three footer rows to print on top of 
> data near the bottom of the page. What do I need to do to force the 
> 3-line footer to print?

You are trying to add a table with writeSelectedRows in a page event
(probably in an onEndPage method). Incidentally this table acts as a
footer for every page, but that doesn't matter.
Based on this three line description of your requirement, you are drawing
the table on every page. I don't understand why you use the methods
setFooterRows or setHeaderRows. These methods are used when you
want to distribute a table over multiple pages automatically. This doesn't
happen when you use writeSelectedRows.
In other words: your question confuses me, and I don't know what to answer,
but maybe my three line description is sufficient to solve the problem.
br,
Bruno

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to