*
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: 15299
    
    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 - Experts at Building Test Data
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: 15299
    
    6

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

Joined: Jul 11, 2001
Posts: 15299
    
    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?
 
Don't get me started about those stupid light bulbs.
 
subject: PDF JEditorPane