File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Other Open Source Projects
Display pdf in browser
Joined: Jul 01, 2008
Feb 16, 2010 00:11:17
Anyone has sample code to display a
text file on browser.I am able to display pdf having an
SCJP (97%), SCWCD (95%))
Joined: Feb 19, 2009
Feb 16, 2010 00:36:36
iText library(api for pdf generation) may be useful for your problem.
Joined: Mar 22, 2005
Feb 16, 2010 00:40:54
A PDF is a PDF, no matter whether it contains text of images. Why do you think that makes a difference?
Joined: Jan 07, 2010
Feb 16, 2010 00:58:39
To display the PDF contents on the browser you can set the HttpServletResponse
as "application/pdf" and then put the file contents in the
otptStream = response.getOutputStream();
Joined: Dec 14, 2009
Feb 16, 2010 04:18:30
<%@ page contentType="application/pdf" %>
System.out.print("Hello World! SCJP 5 79% - SCWCD 5 86%");
I agree. Here's the link:
subject: Display pdf in browser
Not able to download a PDF from load balancer site
Who else hates Adobe Reader?
Opening pdf file using jsp
How to display jasper report in jsp
how to open attachments
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015