File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes PDF Viewer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "PDF Viewer" Watch "PDF Viewer" New topic

PDF Viewer

Abhishek Shirodkar

Joined: May 08, 2009
Posts: 26
Hi all

i wanted to develop a pdf viewer in jsp to view the images and files in the pdf.
Can anyone guide me how it can be done..

Thanks in advance
Oleg Tikhonov
Ranch Hand

Joined: Aug 02, 2008
Posts: 55
first of all, please look at these APIs. 1. apache pdfbox; 2. icepdf; 3. adobe pdf library

Chose one of the APIs, in accordance with your selection, develop a business logic.

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
Are you asking how to convert the PDF into HTML so that it can be part of a JSP page? Normally a web app would just provide a link to the PDF, and then the user/browser would determine what to do with it.

As an aside, what do you mean by "view the ... files in the pdf"? PDFs can contain images, but not arbitrary files.
Mark E Hansen
Ranch Hand

Joined: Apr 01, 2009
Posts: 650
As others have eluded, how a user views a PDF is a personal choice. If your application just serves the PDF, the client's browser will provide the file to the user in the way the user wants it.

If you try to force your design on the user, you're likely to just make your users angry.

Best Regards,
I agree. Here's the link:
subject: PDF Viewer
It's not a secret anymore!