[EMAIL PROTECTED] wrote:
> 
> 
> Hi group,
> 
> Following the sample code provided by iText in Action, I'm able to 
> generate a table of contents page with all page numbers followed by 
> section name. I'd like to ask if there is any way to right align page 
> number.

One would expect that you want the section name followed
by the page number aligned on the right, in which case
you'd use a 2-column PdfPTable with the section titles
in the first column and the page numbers in the second.

If you want the page number first, you can solve it the
same way: the page number right aligned in the first
column; the titles in the second column.

Read chapter 6 for more info on PdfPTable.
-- 
This answer is provided by 1T3XT BVBA

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to