Solved

pdf package for Tomcat 5.0

Posted on 2006-11-01
2
287 Views
Last Modified: 2010-05-18
I need to allow users to download pdf files from a Tomcat (web) server. What is a recommended pdf package to have installed on the Tomcat 5.0?
0
Comment
Question by:ZuTrekker
2 Comments
 
LVL 19

Accepted Solution

by:
ramazanyich earned 125 total points
ID: 17853859
Do you want to allow static or dynamic pdf files ?
If you want static pdf files then it is not a problem at all.
If you want generate pdf files on the fly then you can use iText JAVA library: http://www.lowagie.com/iText/ 
http://itextdocs.lowagie.com/tutorial/general/webapp/index.html - is a link to tutoril page about generating pdf file in your web application using servlet or JSP.
0
 
LVL 4

Assisted Solution

by:Tol_cv
Tol_cv earned 125 total points
ID: 17858391
for generating pdf file you can use apache- fop library , or jasper reports
to download pdf files you can set servlet response content type to  application/pdf and write pdf file to  response  output strream :
response.setContentType("application/pdf");

http://xmlgraphics.apache.org/fop/
http://jasperforge.org/sf/projects/jasperreports
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now