wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes PDF JEditorPane Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "PDF JEditorPane" Watch "PDF JEditorPane" New topic
Author

PDF JEditorPane

Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15286
    
    6

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()??


GenRocket - A Test Data Generation Platform
Renee Zhang
Ranch Hand

Joined: Sep 10, 2001
Posts: 72
Why don't you use JTextPane? It supports pdf file and html file?
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15286
    
    6

Thanks Renee. I will look into that.
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15286
    
    6

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?
 
 
subject: PDF JEditorPane
 
Similar Threads
Displaying a HTML file from a local file system(relative path) using JEditorPane?
repainting problems...
HTML from jasper
Disable selection from the JEditorPane
Creating a file from Various chunks of different files in java