Thanks Bruno,

I am new to iText and didn't realize that I could put a table in the footer.

>From writing HTML I have had it beaten into me not to use tables for
presentation purposes but I forget this is not the case for pdf.

Rick

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bruno
Lowagie
Sent: Sunday, December 03, 2006 1:34 AM
To: Post all your questions about iText here
Subject: Re: [iText-questions] leader

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/


-------------------------------------------------------------------------
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