943,744 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 1116
  • Java RSS
Dec 22nd, 2008
0

displaying PDF file in JtextArea

Expand Post »
what's the simpliest code to display a PDF file inside a JTextArea??
Last edited by rude04; Dec 22nd, 2008 at 2:28 pm.
Reputation Points: 10
Solved Threads: 0
Light Poster
rude04 is offline Offline
26 posts
since Jun 2008
Dec 22nd, 2008
0

Re: displaying PDF file in JtextField

Find a library which can read the PDF for you and then do something like JTextArea.setText().
Reputation Points: 85
Solved Threads: 64
Practically a Master Poster
sillyboy is offline Offline
686 posts
since Mar 2007
Dec 23rd, 2008
0

Re: displaying PDF file in JtextField

You can find a pretty comprehensive list of libraries to read and write PDF documents (both commercial and free) here and here.

Once you extract the text from the PDF file, displaying it should not be too much of problem.
Last edited by stephen84s; Dec 23rd, 2008 at 12:31 am.
Featured Poster
Reputation Points: 653
Solved Threads: 151
Nearly a Posting Virtuoso
stephen84s is offline Offline
1,316 posts
since Jul 2007
Dec 23rd, 2008
0

Re: displaying PDF file in JtextField

rude04 as Ezzaral suggested here, Acrobat Viewer bean will be the easiest solution based on your knowledge of Java
Moderator
Featured Poster
Reputation Points: 2786
Solved Threads: 871
Code tags enforcer
peter_budo is offline Offline
6,656 posts
since Dec 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: JPanel Size Off by 1 Pixel
Next Thread in Java Forum Timeline: Installing the JDBC driver





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC