java - iText html string to .rtf file -
i want convert html string .rtf file. when this.
document doc = new document(); rtfwriter2.getinstance(doc, out); htmlparser hp = new htmlparser(); hp.go(doc, in); i exception saying:
<exceptionconverter: java.io.filenotfoundexception: c:\users\ddarellis.ots\appdata\roaming\jdeveloper\system12.1.3.0.41.140521.1008\defaultdomain\resources\images\thyreos.jpg (the system cannot find path specified) this because have image inside html can path relative.
is there way set basepath or way job?
the problem lies in htmlparser. parser should check source attributes relative paths , supplement them site host. can download images seperatly html dom tree.
Comments
Post a Comment