Rick Roen wrote:
> I want to space two sets of text to the right and left of an area.  For 
> example in the footer I would like something like this:
> 
>  
> 
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> 
> Left aligned text 
>                                                                               
>       
> right aligned text
> 
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> 
>  
> 
> In XSL-FO I would have done this by placing an fo:leader between the two 
> sets of text.
> 
>  
> 
> So far, in ITextSharp I am doing it by adding spaces between the two 
> sets of text and measuring until it reaches my width using 
> GetWidthPoint. This works, but I wonder if there is some more natural 
> method to accomplish this effect.

I would use a PdfPTable with 2 cells.
One aligned to the left, the other to the right.
Set the border to PdfPCell.NO_BORDER.
br,
Bruno

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to