• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

flying saucer not identifying   of html

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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..
 
Rancher
Posts: 43011
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This has nothing to do with JSP; I'll move it to a more appropriate forum.
 
brijlata purohit
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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);
 
Does this tiny ad smell okay to you?
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!