Hi All,
I'm using PDFStamper in a way similar to the
AddWaterMarkAndPageNumbers.java example, to stamp a header & footer on
an existing PDF (note that samping over it is a requirement, I can't
edit the PDF to change existing data).
I'm using basically the following code:
==
PdfContentByte over;
BaseFont bf = BaseFont.createFont(BaseFont.HELVETICA,
BaseFont.WINANSI, BaseFont.EMBEDDED);
over.beginText();
(..)
over.setFontAndSize(bf, ps.getFontSize());
over.showTextAligned(align, value, xpos, ypos, rotation);
over.endText();
==
what I would like to do is to display a text on two lines.
I've tried adding various variations of \n \\n etc to the value in
showTextAligned, with no success.
Is there a way to achieve this, without having to do one stamp per
line (which forces me to recalculate positions of the second stamp
based on font size of each stamp...)
Thanks for your insights
Ziad
--
z i a d
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r
_______________________________________________
iText-questions mailing list
iText-questions@(protected)
https://lists.sourceforge.net/lists/listinfo/itext-questions