Skip to main content
Participant
May 22, 2009
Question

Convert Docx and doc to HTML in unix environment with CFMX7

  • May 22, 2009
  • 2 replies
  • 1642 views

I have a web app that allows user to upload doc or docx files and converts it to HTML. I have CFMX 7 in a unix environment. Is there a custom tag that I could use for this conversion? I tried the cfx_word2html tag .. it converts .doc not docx. Please let me know. Thanks...

This topic has been closed for replies.

2 replies

Inspiring
May 26, 2009

I've been pleased with Aspose's Words component.  I use the .NET version, but a Java version is also available.  You could try using CFOBJECT plus the Words Java component to handle document conversion on your server.

http://www.aspose.com/categories/file-format-components/aspose.words-for-.net-and-java/default.aspx

SRI22Author
Participant
May 26, 2009

Is a similar class that is open source?

Inspiring
May 26, 2009

SRI22 wrote:

Is a similar class that is open source?

Not that I am aware of.  If anyone else knows of one, I too would be interested.

Inspiring
May 23, 2009

The key to handling Office docs is via the Apache POI tools/product, Ray Camden has a (typically) excellent post on thi, with examples, instructions, etc.

http://www.coldfusionjedi.com/index.cfm/2009/2/4/Reading-Office-documents-with-ColdFusion

SRI22Author
Participant
May 26, 2009

Thanks for the link. This could be a good start for converting .doc or docx to html. But wondering about how the html formating would work?

Any ideas?

Thnx

Inspiring
May 26, 2009

I have not used the save as HTML feature before but it looks like you have some options to control the HTML results.

http://www.aspose.com/documentation/file-format-components/aspose.words-for-.net-and-java/com/aspose/words/saveoptions.html