Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » iText »

[iText-questions] How to Control Page Number Font Size?

Norma Spence

2006-06-26

Replies:

All,

         I’m a newbie. I had a question on how to control the font of the page number. It’s too large. Currently, I only use the HeaderFooter object to only

Specify where to place it. I would like it’s size to be the same as the font for the header.

 

Font font6 = FontFactory.getFont(FontFactory.HELVETICA, 6)

Chunk ch;

ch = new Chunk(currentDate + "\n" + "Page:");

ch.setFont(font6);

HeaderFooter hdr = new HeaderFooter(new Phrase(ch), true);

hdr.setAlignment(Element.ALIGN_RIGHT);

hdr.setBorder(0);

document.setHeader(hdr);

 

Thanks,

Norma

 

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.