You missed 1T3XT BVBA's earlier post.
>> Check out the paintToPdf method in this old example from the first book:
>>
https://itext.svn.sourceforge.net/svnroot/itext/examples/src/in_action/chapter12/JTextPaneToPdf.java
>> If ta is a JTextPane, g2 a PdfGraphics2D object and alloc a
Rectangle, y
Hello,
Thank you for reminding me of using PdfGraphics2D to solve my save pdf file
problme. Actually I am new to iText and I search some info of PdfGraphics2D.
Here are my solutions:
public void setTexttoPdf(String filePath,JTextPane ta) throws IOException,
DocumentException{
Doc