I forgot to say that I want to insert this text in an already created pdf.
I have found this example:
PdfReader reader = new PdfReader("tax_initial.pdf");
PdfStamper stamp = new PdfStamper(reader, new
FileOutputStream("tax_result.pdf"));
PdfContentByte over;
BaseFont bf = BaseFont.createFont(BaseFont.HELVETICA, BaseFont.WINANSI,
BaseFont.EMBEDDED);
over = stamp.getOverContent(1);
over.beginText();
over.setFontAndSize(bf, 14);
over.showTextAligned(Element.ALIGN_LEFT, "Name", 58, 780, 0);
over.setFontAndSize(bf, 12);
over.showTextAligned(Element.ALIGN_LEFT, "Addresse", 58, 765, 0);
over.showTextAligned(Element.ALIGN_LEFT, "[email protected]", 58, 750, 0);
Is there another possibility to insert some text in an already created pdf?
--
View this message in context:
http://www.nabble.com/itext%3A-every-letter-in-its-cell-tp22947902p22948678.html
Sent from the iText - General mailing list archive at Nabble.com.
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.1t3xt.com/docs/book.php