Bruno/Paulo:
I have possbily tried everything to make footer roman numeral, can't figure it out. Please help me.
My document looks great, it has perfect body, margin, header and
footer; but all I want to make footer roman numeral. By the way,
I am building web application
Bruno, thanks for your quick reply, I appreciated. You guys are ROCK!
Hobi
Sep 23, 2005
Norman, OK
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> I found PdfPageLabels which has Roman Numerals but I dont know how can
> I embed it to HeaderFooter object
There are also lists with roman numerals, but HeaderFooter is an
obsolete object that is hardly ever used by anyone. If you want to add
headers or footers, it is advised to use PdfPageEvents (there's an
example in the online tutorial).
Also it is better to mail to the mailing list instead of to me personally.
br,
Bruno
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Bruno:
Hello. I have started using your awesome iText API few weeks ago
and I love it. In my project I need to add a footer with roman
nemeral. I know how to add a footer with regual number 1, 2, 3
but how can I switch to i, ii, iii, iv in to footer?
Here is my footer code:
Phrase footerPhrase = new Phrase();
HeaderFooter footer = new HeaderFooter(footerPhrase,true);
footer.setAlignment(Element.ALIGN_CENTER);
footer.setBorder(Rectangle.NO_BORDER
);
doc.setFooter(footer);
I found PdfPageLabels which has Roman Numerals but I dont know how can I embed it to HeaderFooter object
PdfPageLabels pageLabels = new PdfPageLabels();
pageLabels.addPageLabel(1, PdfPageLabels.LOWERCASE_ROMAN_NUMERALS);
pageLabels.addPageLabel(5, PdfPageLabels.DECIMAL_ARABIC_NUMERALS);
pageLabels.addPageLabel(8, PdfPageLabels.DECIMAL_ARABIC_NUMERALS, "A-", 8);
Please help me. Thanks again for your great API
--
Hobi
Norman, OK
- [iText-questions] Page footer with roman numeral - Please he... HobiOne