Skip to main content
WolfShade
Legend
January 14, 2013
Question

CF9 - display .rtf file inline (conversion to something else okay)

  • January 14, 2013
  • 1 reply
  • 1244 views

Hello, everyone.

Just wondering if there is a way to display an .rtf file in a browser?  Every method I've tried, so far, just asks the user to download the .rtf file.

If I have to convert it to something else (like XML), first, I can do that.  The .rtf file does not reside in the filesystem, it's a binary in a BLOB in an Oracle database.

Thank you,

^_^

    This topic has been closed for replies.

    1 reply

    Tim Cunningham
    Participating Frequently
    January 14, 2013

    It is possible to convert word docs or rtf docs to PDF but your must have word or libre office installed on the ColdFusion server to do so. http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WS692D73AF-6338-495d-9E47-C2ECD8BF9307.html  But as far as showing a rtf file inline *inside* a browser I haven't seen that successfully done.

    WolfShade
    WolfShadeAuthor
    Legend
    January 15, 2013

    Welp, that's me out, then.  I can install Word on my dev system, but not on production.  Ah, well.  Thanks for the info, Tim.

    ^_^

    WolfShade
    WolfShadeAuthor
    Legend
    January 15, 2013

    I thought I had seen a post on some other forum, somewhere, suggesting that the rtf could be converted to XML, then parsed into HTML from that.

    Anyone know how to convert rtf to xml??  Not wanting to give up, y'know.

    ^_^