Is it possible to for a web browser to read a pdf file generated by a Java EE Web application without installing the Adobe reader plugin? Isn’t there any native pdf reader in the browser? What advise can you give?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Chrome has a built in PDF reader, but other browsers do not (as far as I’m aware).
You could use Google Docs to provide a “view” link for PDFs. For example, http://bit.ly/oQCsTe is a (shortened) link to a PDF file. To easily allow users to view this in Google Docs, make a link like this:
http://docs.google.com/viewer?url=http://bit.ly/oQCsTe
Alternatively, if you’re okay with having users install a PDF reader, but dislike Adobe reader, you can recommend an alternative like SumatraPDF or Foxit Reader.
Finally, if you want to have your users download PDFs instead of view them in the web browser, in your HTTP request response, set the
content-typeheader toapplication/octet-streamand set thecontent-dispositionheader toattachment.Edit: Some more ideas: