On 21/07/2011 1:52, Mike Rothschild wrote:
> Hi,
>
> I've built a Table of Contents within a two-column Table where first 
> column is the Chapter name and the second column is the page number. 
>  Currently it looks like:
>
>
> Sometext                                      1
> Somethingsomething                      2
>
>
>
> This is fine, but I am trying to make it like this:
>
> Sometext .................................... 1
> Somethingsomething ...................  2
>
>
> Is there a way to fill the white space of a PdfPCell (or anything) 
> with a single character, multiple times like this?

If you go to http://affiliate.manning.com/idevaffiliate.php?id=223_212
You can download 2 chapters for free.
If you look at the figures in this chapters, you'll discover these images:
http://www.flickr.com/photos/itextinaction/4574188895
http://www.flickr.com/photos/itextinaction/4574188981
Is this what you're looking for. If so, please read the documentation.

Maybe you think that reading documentation is a waste of time.
But think about how much time you've wasted by trying this:

> I have tried to overload the cell with the character and put a nowrap 
> to true and colspan to 0, but it just flows into the next column (page 
> number) instead of just stopping at the end of the cell's width.

That's the wrong approach.

------------------------------------------------------------------------------
5 Ways to Improve & Secure Unified Communications
Unified Communications promises greater efficiencies for business. UC can 
improve internal communications as well as offer faster, more efficient ways
to interact with customers and streamline customer service. Learn more!
http://www.accelacomm.com/jaw/sfnl/114/51426253/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to