File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Java
»
Servlets
Author
How to check Acrobat Reader is installed or not?
SomaSekhar Gondi
Greenhorn
Joined: May 15, 2006
Posts: 6
posted
Oct 09, 2007 15:09:00
0
Hello,
How to check on client machine Acrobat Reader is installed or not? if not installed, how to catch that exception.
This is the code i am using on
Servlet
.
byte[] content = baos.toByteArray(); response.setContentType("application/pdf"); response.setContentLength(content.length); response.getOutputStream().write(content); response.getOutputStream().flush();
Before executing the above code, i need to check client machine supports or not.
Regards,
-Soma
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35224
7
posted
Oct 09, 2007 15:43:00
0
You can't. Besides, there are other
PDF
viewers apart from Acrobat Reader, so its absence wouldn't prove anything.
Android apps
–
ImageJ plugins
–
Java web charts
I agree. Here's the link:
http://aspose.com/file-tools
subject: How to check Acrobat Reader is installed or not?
Similar Threads
Streaming PDF files
Launching other applications from Java GUI
check for an installed application on the client side(eg. acrobat reader)
PDF API
open pdf inside browser
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter