Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization 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 ...
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

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 ]
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!