java - Does FlyingSaucer create links in generated PDF documents? -
i generating pdf documents using flying saucer xhtml.
is flying saucer capable of creating links in pdf document?
up not seeing links @ all.
i have gone through debugger , see document contained in w3cdoc contain <a href have not been sanitized away.
itextrenderer itextrender = null; tidy tidy = new tidy(); tidy.setxmlout(true); tidy.setshowwarnings(false); // tidy.setxmltags(false); tidy.setinputencoding(utf_8_dn); tidy.setoutputencoding(utf_8_dn); tidy.setxhtml(true);// tidy.setmakeclean(true); datastream = new bytearrayinputstream(data); stream = new bytearrayoutputstream(32 * 2048); post process - convert html xhtml valid format org.w3c.dom.document w3cdoc = tidy.parsedom(datastream, stream); itextrender = new itextrenderer(); itextrender.setdocument(w3cdoc, null); itextrender.layout(); itextrender.createpdf(stream);
Comments
Post a Comment