Convert jsp to PDF

992 views
Skip to first unread message

Deepak Singh

unread,
Mar 30, 2012, 11:55:18 AM3/30/12
to google-a...@googlegroups.com
Hi,

I have a jsp page which renders data based on session objects and it uses jstl.

I need to give the user an option to save this JSpP page as PDF. So i can give the call to a servlet after users click on the link and generate jsp in a new window. But how can i make this downloadable as PDF or printable as PDF ?



Thanks 
Deepak Singh

karim duran

unread,
Mar 30, 2012, 6:51:17 PM3/30/12
to google-a...@googlegroups.com
Hi Deepak,

Your JSP is rendered as HTML. And you want to provide your user to download
the same presentation of your JSP, in PDF format.

So, you need to convert HTML presentation format in PDF presentation format.
It's what i understand about your wish.

You have solutions to do that.

1) There is libraries to convert HTML to PDF ( but the conversion is not always very good)
2) You can use a specialized framework ( Jasper report, BIRT etc...)
3) You can clone your JSP presentation in alternative formats (XML XSL and FO ). Have a look to
Apache FOP.

What you want to do is possible.

I hope it helps.

Regards.

Karim Duran.

2012/3/30 Deepak Singh <deepaks...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.

Deepak Singh

unread,
Mar 31, 2012, 3:38:12 PM3/31/12
to google-a...@googlegroups.com
Hi Karim,

Can you pls explain about point no (3) ?

Thanks
Deepak
--
Deepak Singh

Tomas

unread,
Mar 31, 2012, 4:02:53 PM3/31/12
to google-a...@googlegroups.com
https://developers.google.com/appengine/docs/java/conversion/
Deepak

Hi Deepak,
2012/3/30 Deepak Singh <deepaks...@gmail.com>
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to google-appengine+unsubscribe@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to google-appengine+unsubscribe@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.



--
Deepak Singh
Reply all
Reply to author
Forward
0 new messages