Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » iText »

Re: [iText-questions] RTF footer more than page No

Mark Hall

2006-09-08

Replies:

On Friday 08 September 2006 10:17, Alin Popa wrote:
> Page No - Allign LEFT
> Current Date - Allign RIGHT
> (If there is possible, both on the same row/paragraph)
>
> I tryied with RtfHeaderFooterGroup, but when I'm doing setHeaderFooter, it
> will overwrite my previous paragraph.
> Maybe if this is the solution, please give me a clear/simple example.
There are basically two possible approaches:

1.) Use a Table with two cells in each place a Paragraph with the correct
alignment. Then construct a RtfHeaderFooter with the Table and set it as the
footer.

2.) Use a Paragraph, an RtfTab object with the correct tab placement on the
right hand side. Then add a the RtfPageNumber and a Chunk with "\t" + date.

For the first method there should be an example in the iText tutorial. The
second is without documentation unfortunately.

Greetings,
Mark
--
A few hours grace before the madness begins again.

My GPG public key is available at:
http://www.edu.uni-klu.ac.at/~mhall/data/security/MarkHall.asc
-------------------------------------------------------------------------
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
iText-questions@(protected)
https://lists.sourceforge.net/lists/listinfo/itext-questions
©2008 junlu.com - Jax Systems, LLC, U.S.A.