tags:

views:

435

answers:

4

Hi all,

How to convert as PDF from my Jsp/Html file?.

i want to convert particular part of my webpage to pdf file. is it possible?

  • Gnaniyar Zubair
+4  A: 

Yes. Take a good look at booth Apache FOP and iText. No matter what you use, you'll probably have to do a little fiddling.

Matthew Flaschen
A: 

Take a look at html2ps (Perl) or html2ps (PHP). However, none of the two is implemented in Java.

You might also want to read this article.

joschi
A: 

try wkhtmltopdf. It is a command line utility that can be provided an html file or web address and a save location for the pdf. Very easy to use and utilizes the same rendering engine as safari. Works MUCH better than many of the other parsers that I have used (that don't always support CSS and other advanced layout features.

jle
+1  A: 

I used HTMLDoc a couple of years ago and had pretty good luck with it.

yalestar