• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

PDF JEditorPane

 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know that JEditorPane does not support PDF files as of yet. At least to the best of my knowledge they don't. But here is a question. I am using the iText package in a servlet to display a report in PDF format from a database. This works fine from IE, Netscape, etc.
Is there a way to "capture" the pdf file when it comes back to the JEditorPane and write it out to a file and then I could just open it using Runtime.exec()??
 
Renee Zhang
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why don't you use JTextPane? It supports pdf file and html file?
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Renee. I will look into that.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Renee, I have been searching for information on JTextPane and PDF files, but can't find anything. Do you have any information on how to make it work?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic