Well now that I try to do the footer with a table I am having a problem.
Here is what I am doing in VB.Net (pseudo code):
Dim phrase as Phrase = new Phrase()
Dim table as PdfPTable = new PdfPTable(1)
Table.AddCell("footer text")
Phrase.Add(table)
Dim footer as HeaderFooter = new HeaderFooter(phrase,false)
Doc.footer = footer
The footer is rendered, but it is blank. If I add more cells to the table,
the footer height increases, but still no text is rendered.
What do I misunderstand?
Thanks for your help,
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/