This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Hands On Software Engineering with Python and have Brian Allbey on-line!
See this thread for details.
Win a copy of Hands On Software Engineering with Python this week in the Jython/Python 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
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

convert xhtml to rtf  RSS feed

 
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I am trying to convert xhtml to rtf and there are few strategies possible:
1. Convert xhtml to xsl:fo using xhtml2fo.xsl stylesheet and then convert the fo to rtf using a library(like by mindspan)
THE ISSUE I have is that the xsl(part of antennahouse documentation) is still for a small subset of xhtml and the conversion to fo leaves a lot to be desired( font sizes, style, etc). Secondly the xsl implementation has performance impact.
2. Use a api (such as itext) to convert xhtml to rtf. The api is also incomplete.
3. Use a SAX parser to convert the xhtml to fo, which can be quite cumbersome.
I don't see a real clean solution. If you have worked on conversions of xhtml to rtf and pdf, please share your thoughts.
[ August 11, 2003: Message edited by: Avianu Sud ]
 
I will suppress my every urge. But not this shameless plug:
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!