You are using null instead of a real Shape:
ta.getUI().getRootView(ta).paint(g2, null);
Which answers your question:
I dont know why the content of the Jtextane didn't appear in the pdf
file since I have print it to g2
See:
http://download.oracle.com/javase/1.4.2/docs/api/javax/swing/text/View.html#paint%28java.awt.Graphics,%20java.awt.Shape%29
You need the|"allocation"| - the allocated region to render into.
------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
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