Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / August 2007

Tip: Looking for answers? Try searching our database.

How to convert rtf to html?

Thread view: 
Zsolt Koppany - 02 Aug 2007 14:06 GMT
Hi,

what is the best way to convert rtf documents into html?

Zsolt
Stefan Ram - 02 Aug 2007 14:31 GMT
>what is the best way to convert rtf documents into html?

 My semantic net knows three programs that can read RTF.

     o   :concept/software/majix %
     o   :concept/software/RTF2FO %
     o   :concept/software/ScroogeXHTML %
     
http://purl.net/stefan_ram/garnoo/XOCATALOGUEXOYTREEGXOPROGRAMMINGXOLANGUAGEXSYR
YTYFXOREADER


 As one can see there, this includes at least two that are
 available as Java libraries.

 An RTF document is written with Java as follows.

new java,io.FileWriter( "example.rtf" ).
append( "{\\rtf\\ansi Hi!\\par}" ).close();

 General information about RTF:

http://msdn2.microsoft.com/en-us/library/aa140277(office.10,d=printer).aspx
http://msdn2.microsoft.com/en-us/library/aa140297(office.10,d=printer).aspx
http://latex2rtf.sourceforge.net/rtfspec_45.html
Zsolt Koppany - 02 Aug 2007 16:30 GMT
Stefan,

I want to write html files from rtf ones.

Zsolt

>>what is the best way to convert rtf documents into html?
>
[quoted text clipped - 19 lines]
> http://msdn2.microsoft.com/en-us/library/aa140297(office.10,d=printer).aspx
> http://latex2rtf.sourceforge.net/rtfspec_45.html
Daniel Pitts - 02 Aug 2007 15:57 GMT
> Hi,
>
> what is the best way to convert rtf documents into html?
>
> Zsolt

Open it in Word, and then save as HTML? Ofcourse word produces
TERRIBLE HTML.

Then again , RTF is designed as a style markup, and HTML is desiged as
a semantic markup. They aren't exactly compatible.  Most people can
see RTF, anyway, why convert to HTML? Perhaps you'd be better off
converting to PDF, if you're really concerned about webability.
Zsolt Koppany - 02 Aug 2007 16:31 GMT
Daniel,

I need to display the rtf document in browsers with other texts thus pdf is
not an option.

Zsolt

>> Hi,
>>
[quoted text clipped - 9 lines]
> see RTF, anyway, why convert to HTML? Perhaps you'd be better off
> converting to PDF, if you're really concerned about webability.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.