?
Solved

Can use swing to preview pdf file?

Posted on 2002-04-18
6
Medium Priority
?
448 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 200 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
Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

 
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

Independent Software Vendors: 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!

Question has a verified solution.

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

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Suggested Courses
Course of the Month15 days, 2 hours left to enroll

771 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