The moose likes JSP and the fly likes converting java to pdf Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "converting java to pdf" Watch "converting java to pdf" New topic

converting java to pdf


Joined: Mar 18, 2004
Posts: 2
i have a java application that genereated reports using jsp..
i want a link in the web page to convert the report into a
pdf document. is there any existing utility so that
i can directly call it from my application which will create a pdf so
that i dont have to change my code a lot as there are lot of reports for which i want to implement this functionality.
can anybody help me out with this..
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63348

"vik jsp",
We're pleased to have you here with us in the JSP forum, but there are a few rules that need to be followed, and one is that proper names are required. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.
In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.
Forum Bartender

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
brad balmer
Ranch Hand

Joined: Mar 08, 2004
Posts: 57
There are many different options to do this, depending on how much you want to spend (0 -> thousands).
One of the easiest ways (not FREE) is using a filter written by big.faceless It converts a jsp/xml into a PDF.
Free ones are jasper, iText, ......
Search sourceforge for a full listing.
S Santosh Kumar
Ranch Hand

Joined: Mar 14, 2004
Posts: 43
Try iText.jar from
It's free and very easy to use with lots of good examples ..

Early bird catches the worm, but remember "early worm" gets caught by bird.

Joined: Mar 18, 2004
Posts: 2
thanks you all for ur help
i will look into iText..
Winston Smith
Ranch Hand

Joined: Jun 06, 2003
Posts: 136
FDFToolkit is a nice option if you're dealing with dynamic reports/forms. It allows you to build pdf form templates then import data dynamically via the web. We use this to show evaluation reports for employees online.

for (int i = today; i < endOfTime; i++) { code(); }
I agree. Here's the link:
subject: converting java to pdf
jQuery in Action, 3rd edition