0

I am trying to render a PDF file in JSP file and used <object> HTML tag. It's displaying the PDF file in most of the browsers, but not in IE.

I searched on Google and found some posts which are suggesting me to use <embed> and <iframe> HTML tags. I have used those, but still no luck.

How is this caused and how can I solve it?

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
Rama Shankar
  • 103
  • 2
  • 10
  • Possible duplicate of [Displaying pdf in jsp](http://stackoverflow.com/questions/16232916/displaying-pdf-in-jsp) – karan Sep 09 '16 at 06:50

1 Answers1

0

Well, any of the techniques should work, provided the browser knows how to display PDF (i.e. a viewer is registered) and Content-Disposition HTTP header of the file contains inline keyword (e.g. Content-Disposition: inline; filename="filename.pdf").

Jozef Chocholacek
  • 2,874
  • 2
  • 20
  • 25