aspose file tools*
The moose likes Other Open Source Projects and the fly likes PDF creation 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 "PDF creation" Watch "PDF creation" New topic
Author

PDF creation

sridhar lakka
Ranch Hand

Joined: Jan 02, 2007
Posts: 109
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

Joined: Nov 08, 2003
Posts: 3479

Have you checked:
iText
?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41473
    
  51
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 ]

Ping & DNS - my free Android networking tools app
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Hi ulf?

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


thanks & regards,
seetharaman
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41473
    
  51
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

Joined: Jan 28, 2008
Posts: 5575

Thanks ulf .i also need this
Keenon Han
Greenhorn

Joined: Apr 10, 2008
Posts: 6
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.


Keenon Han<br />SCJP 5.0
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

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.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: PDF creation