FYI

 

     Phrase footer_phrase = new Phrase();

     Paragraph footer_pgraph = new Paragraph(“SampleFooter”, FontFactory.getFont(“ARIAL”,10, Font.BOLD,getColor(“RED”))));

     footer_phrase.add(footer_pgraph);   

     HeaderFooter doc_footer = new HeaderFooter(footer_phrase,true);

     doc_footer.setBorderColor(Color.WHITE);

     document.setFooter(doc_footer);

    

 

Rgds

 

Srini 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Norma Spence
Sent: Tuesday, June 27, 2006 2:36 AM
To: [email protected]
Subject: [iText-questions] How to Control Page Number Font Size?

 

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

 



“The information contained in this communication is intended solely for the use of the individual or entity to whom it is addressed and others authorized to receive it. It may contain confidential or legally privileged information and may not be disclosed to anyone else. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this information is strictly prohibited and may be unlawful. If you have received this communication in error, please notify us immediately by responding to the sender of this email and then delete it from your system. Four Soft is neither liable for the proper and complete transmission of the information contained in this communication nor for any delay in its receipt”.
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