Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » iText »

[iText-questions] Number of page

Marco

2005-06-06

Replies:

I insert number of page in a file pdf with the following lines:

//...
   writer=PdfWriter.getInstance(document,new FileOutputStream(nomefile));
   HeaderFooter header=new HeaderFooter(new Phrase("~ "),new Phrase("
~"));
   header.setAlignment(header.ALIGN_CENTER);
   header.setBorder(com.lowagie.text.Rectangle.BOTTOM);
   document.setHeader(header);
   document.open();
//...

Only, with Rectangle.BOTTOM the line that was inserted is too long; i want
only a line under "~ 1 ~".
How it is possible?





-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
iText-questions mailing list
iText-questions@(protected)
https://lists.sourceforge.net/lists/listinfo/itext-questions
©2008 junlu.com - Jax Systems, LLC, U.S.A.