Win a copy of Machine Learning for Business: Using Amazon SageMaker and JupyterE this week in the Jython/Python forum
or Object Design Style Guide in the Object-Oriented programming forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

PDF Viewer

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
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.

Cheers,
Oleg.
 
Rancher
Posts: 43011
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 650
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 don't get it. A whale wearing overalls? How does that even work? It's like a tiny ad wearing overalls.
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!