• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

convert xhtml to rtf

 
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Hey, I'm supposed to be the guide! Wait up! No fair! You have the tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic