Win a copy of Kotlin for Android App Development this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Display Contents of File on Web Page  RSS feed

 
Ranch Hand
Posts: 1923
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I know the path or url of a rtf file how can I display the contents of that file on my web page?

Is there a java library that will convert rtf file to html?

Could OpenOffice be used to convert rtf to html?

Is there any HTML control that would allow me to write and or paste copied data into it then save as rtf?

I really need some help with this.
 
Marshal
Posts: 67226
170
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe that there may be some rich-edit widgets that use RTF. Whether they have a display-only mode or not is a good question.

Obviously the most straightforward approach would be to convert the RTF into something that easier to display, such as HTML. But that's clearly beyond the scoped of an HTML forum. I'd google for such server-side conversion libraries.
 
Steve Dyke
Ranch Hand
Posts: 1923
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Bear Bibeault wrote:I believe that there may be some rich-edit widgets that use RTF. Whether they have a display-only mode or not is a good question.

Obviously the most straightforward approach would be to convert the RTF into something that easier to display, such as HTML. But that's clearly beyond the scoped of an HTML forum. I'd google for such server-side conversion libraries.



I have googled until my eyes are crossed but not found a solution. I really need somone with some expertise in this area to guid me in the right direction. Is there a forum here that could help with this?
 
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Steve Dyke wrote:I have googled until my eyes are crossed but not found a solution.



Sure your eyes weren't crossed to begin with? java convert rtf to html

Now, if none of those will work that's one thing, but don't say you didn't find anything at all.

 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, here is a nice list of available free rich text editors for the web.

http://woork.blogspot.com/2009/02/best-rich-text-editors-ready-to-use-in.html
 
Bear Bibeault
Marshal
Posts: 67226
170
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmmm, coincidentally, this was just posted in the BA forum.
 
Steve Dyke
Ranch Hand
Posts: 1923
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Gregg Bolinger wrote:

Steve Dyke wrote:I have googled until my eyes are crossed but not found a solution.



Sure your eyes weren't crossed to begin with? java convert rtf to html

Now, if none of those will work that's one thing, but don't say you didn't find anything at all.



Maybe my statement was a little strong. What I ment was I did not find any I looked at that would render the graphics portion of a rtf. It only converted the text portion.
 
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!