Solved

Can use swing to preview pdf file?

Posted on 2002-04-18
6
430 Views
Last Modified: 2009-07-29
Hei,

       Here i got one question....
       if inside PC there is dont have Acrobat Reader,
Can we use java swing to preview the pdf file..?

0
Comment
Question by:lhshyong
6 Comments
 
LVL 7

Expert Comment

by:tomboshell
ID: 6952745
Somewhere, somehow there needs to be a program to load the document and decode/mark-up the contents.  The Reader is free, should be no problem.  There are other open-source projects to work with that file format, but some programming &/ implementation must be done.  Start here for a Java library for working with the pdf format. http://www.lowagie.com/iText/

tom
0
 
LVL 2

Expert Comment

by:vasan_sr
ID: 6952943
Hi,
  From Java Swing u cannot preview a PDF file. There are some pdf readers(not acrobat reader) that will open the pdf file.

VasanS
0
 
LVL 19

Accepted Solution

by:
Jim Cakalic earned 50 total points
ID: 6954720
Adobe has a Java-based viewer:
http://www.adobe.com/products/acrviewer/main.html

According to the web page:
"Acrobat Viewer can be licensed free to be bundled with Java-related products, or integrated into custom Java solutions through the JavaBean interface. Please read the End User License Agreement for details."

I don't really know anything more than that about it. HTH.

Best regards,
Jim Cakalic
0
Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

 
LVL 9

Expert Comment

by:Venci75
ID: 7972357
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Answered by: jim_cakalic
Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
Venci75
EE Cleanup Volunteer
0
 
LVL 19

Expert Comment

by:Jim Cakalic
ID: 7975052
Thanks :-)
0
 

Expert Comment

by:SpideyMod
ID: 8021310
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to execute a Python program and gather return output in Java 2 40
runtime exception 2 41
login form jsp example 2 37
servlet and mdb, jms error 1 32
For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question