Op 9/04/2012 5:14, 眼镜兄 schreef: > I want to add some words as a watermark to a PDF file. The watermark > should list vertically and the words of the watermark should rotate 90 > degrees. > Can you give me an example?
Can you read the documentation? See http://itextpdf.com/book/ ColumnText.showTextAligned(canvas, Element.ALIGN_CENTER, new Phrase("rotated 90 degrees"), x, y, 90); canvas is an instance of PdfContentByte (for instance obtained from a PdfStamper using getOverContent()). x and y are coordinates. ------------------------------------------------------------------------------ For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2 _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
