Solved

Can use swing to preview pdf file?

Posted on 2002-04-18
6
434 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
jboss wildfly 10.1 10 437
jboss 7.1 start up error 1 64
java mysql insert application 14 47
spring maven example issues 3 44
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
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 about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

726 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