Good day.
I am using iTextSharp (v3.1.7) and having difficulties trying to format the
footer to a document (both PDF and RTF).
Basically, I am trying to achieve the following footer (everything
centered):
-----------------------------------------------------------
<page number>
<verbatim proprietary text>
<verbatim proprietary text>
<verbatim proprietary text>
I am trying to use the constructor that has the NUMBERED boolean signature
in order to get the page number.
// code snippet
string headerText = "<verbatim proprietary text>" + Environment.NewLine +
"<verbatim proprietary text>" + Environment.NewLine + "<verbatim proprietary
text>";
Phrase phraseFooter = new Phrase(footerText, footerFont);
pageFooter = new HeaderFooter(phraseFooter, true);
pageFooter.Border = iTextSharp.text.Rectangle.TOP_BORDER;
pageFooter.Alignment = iTextSharp.text.Element.ALIGN_CENTER;
document.Footer = pageFooter;
// end code snippet
The code above places the page number at the very end of the Phrase! Am I
doing this incorrectly? Is there another way???
If anyone can help me I am appreciative - Thank you in Advance!
Lawrence
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar