aspose file tools*
The moose likes Spring and the fly likes generate pdf Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "generate pdf" Watch "generate pdf" New topic

generate pdf

greeshma silam

Joined: Jul 13, 2011
Posts: 14
Hello All,

Our project uses JSF 2, Spring 3. I was wondering if there is any way to generate a pdf from JSF page. Basically we have to preview the report generated in a pdf format with some options to Save/Submit buttons on the report. I really appreciate if anyone can post a sample code or suggest any possible solutions

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 39571
I would imagine that the best way to generate PDFs from a JSF page is the same as generating PDFs any other way - using the iText library. Have you tried that? And more importantly, is that what you were asking?

Ping & DNS - updated with new look and Ping home screen widget
greeshma silam

Joined: Jul 13, 2011
Posts: 14
I was looking into Spring Framework to generate non HTMl output and found AbstractPdfView....

I am not sure how I can use iText library...If you can provide me a sample code to start with it will be very helpful to me

I agree. Here's the link:
subject: generate pdf
Similar Threads
How can i generate PDF from JSF
integrating iReport with my JSP Project
Convert a report in Jsp to PDF format
how to combine two different PDF's and return only byte[]
Generating PDF and RTF file from jsp