File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

PDF file and JSP

 
Mike Yu
Ranch Hand
Posts: 175
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
When we click a link (in a JSP or HTML page) that links to a PDF file, Adobe Acrobat is open and the PDF file is displayed in a browser. What I have seen is that the only content in the browser is this PDF document. Is it possible to make a page that contains both the PDF document and other HTML or JSP stuff?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64185
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Probably not directly, but you could embed the PDF in an iframe if that suits your purpose.
hth,
bear
 
Sandep Chaturvedi
Ranch Hand
Posts: 49
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can definitely not mix html and pdf. They are two different documents. This is ensured by the content type of the response (application/pdf for pdf and text/html for html). They can be viewed together using frame.
 
Mike Yu
Ranch Hand
Posts: 175
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bear and Sandep,
Thank you for your info. It is very helpful.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic