• Post Reply Bookmark Topic Watch Topic
  • New Topic

writing jpg/gif to rtf

 
Peter Primrose
Ranch Hand
Posts: 755
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I'm in the dark here. does anyone know how to save a jpg/gif with text to an rtf file???

I don't know even where to start.

Thanks
ppr
 
Joe Ess
Bartender
Posts: 9362
11
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think what you mean is you want to embed an image in an RTF document. One approach that you can try is using javax.swing.text.rtf.RTFEditorKit to programmatically create and manipulate a document. You can start by reading up on how Text Component Features work in Java.
I've used HTMLEditorKit to strip text from HTML like this, but I have to say I don't know exactly what RTFEditorKit is capable of. Good luck.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!