File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

PDF creation

 
sridhar lakka
Ranch Hand
Posts: 109
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Hll,
Thanks a lot in advance.
I have one jsp page which is generated with some text and some images, How can I export that file as pdf file with those images.
Please help me in this issue.
We are using struts and J2EE.
Regards,
Sree
 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you checked:
iText
?
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
iText can not convert HTML to PDF, not do I think that there is an easy, general way to do so. Have you considered using a page creation technique that can generate multiple output formats, like Apache FOP, Apache Cocoon, or JasperReports?
[ May 13, 2008: Message edited by: Ulf Dittmer ]
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ulf?

where to study page creation technique ?...please give me good url for that..


thanks & regards,
seetharaman
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just read the home pages and/or documentation of the libraries I mentioned. Then you should get a good feeling for what each can do, and whether they might be appropriate in your circumstances.
[ May 13, 2008: Message edited by: Ulf Dittmer ]
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks ulf .i also need this
 
Keenon Han
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello sridhar,

You can lookup JasperReports.

http://jasperforge.org/jaspersoft/opensource/business_intelligence/ireport/

It has API's which can help you generate PDF files.

bytes = JasperRunManager.runReportToPdf(reportFile.getPath(),
new HashMap(), new JREmptyDataSource());

.runReportToPdf - this can help you.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ulf Dittmer:
iText can not convert HTML to PDF, not do I think that there is an easy, general way to do so. Have you considered using a page creation technique that can generate multiple output formats, like Apache FOP, Apache Cocoon, or JasperReports?

[ May 13, 2008: Message edited by: Ulf Dittmer ]


The Flying Saucer Project (which uses iText) can convert XHTML and CSS to PDF.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic