Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #4491
| From | "John B. Matthews" <john.b..matthews@THRWHITE.remove-dii-this> |
|---|---|
| Subject | Re: JEditorPane and HTMLE |
| Message-ID | <nospam-3B1AF9.14232425112008@news.motzarella.org> (permalink) |
| Newsgroups | comp.lang.java.gui |
| References | <ccc12a96-3c5a-43e5-8a73-1d5bf071e539@z1g2000yqn.googlegroups |
| Date | 2011-04-27 15:50 +0000 |
| Organization | TDS.net |
To: comp.lang.java.gui In article <ccc12a96-3c5a-43e5-8a73-1d5bf071e539@z1g2000yqn.googlegroups.com>, frarapp@yahoo.com wrote: > I'm using JavaHelp to display html pages and would like to use it > also for pdf files. JavaHelp use JEditorPane.setPage to display the > content and home made classes can be registered for mime type in the > helpset file. > > These classes are to extends from Swing's EditorKit. My idea was to > load a PdfEditorKit wich would load the pdf in a img tag. which would > take the whole page. > > How can I code this ? I have tried to create a PdfDocument in the > createDefaultDocument of my PdfEditorKit wich extends HTMLEditorKit > but I'm stuck here and I can't display the html with the img tag (or > the pdf directly if that would be possible). I don't know anything about the internal structure of PDF, but I have trouble seeing PDF as an extension of HTML. I'm guessing that a presumptive PdfEditorKit might reasonably extend StyledEditorKit. As this is an ambitious undertaking, you might look at existing alternatives or a commercial implementation: <http://en.wikipedia.org/wiki/List_of_PDF_software> <http://www.jpedal.org/> -- John B. Matthews trashgod at gmail dot com http://home.roadrunner.com/~jbmatthews/ --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
Back to comp.lang.java.gui | Previous | Next | Find similar
Re: JEditorPane and HTMLE "John B. Matthews" <john.b..matthews@THRWHITE.remove-dii-this> - 2011-04-27 15:50 +0000
csiph-web