aspose file tools*
The moose likes Other Open Source Projects and the fly likes flying saucer not identifying   of html  Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "flying saucer not identifying   of html  " Watch "flying saucer not identifying   of html  " New topic
Author

flying saucer not identifying   of html

brijlata purohit
Greenhorn

Joined: Sep 13, 2011
Posts: 3
i m using flying saucer with itext but it is not identifying   while converting from html to pdf ,any idea ! please suggest! thanks in advance..
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42950
    
  72
This has nothing to do with JSP; I'll move it to a more appropriate forum.
brijlata purohit
Greenhorn

Joined: Sep 13, 2011
Posts: 3
But i am using in jsp page,html output of jsp page is converted into pdf ,using classes and methods of flying saucer and itext open apis for html to pdf conversion.

page import="
javax.xml.parsers.DocumentBuilder,
javax.xml.parsers.DocumentBuilderFactory,
org.xml.sax.InputSource,
com.lowagie.text.DocumentException,
org.xhtmlrenderer.pdf.ITextRenderer"
.
.
....

DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
ITextRenderer renderer = new ITextRenderer();
renderer.setDocument(builder.parse(new InputSource(new StringReader(buf.toString()))), null);
.
.
.....
OutputStream os = new FileOutputStream(outputFile);
renderer.layout();
renderer.createPDF(os);
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: flying saucer not identifying   of html