Copy link to clipboard
Copied
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...
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
Is a similar class that is open source?
Copy link to clipboard
Copied
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.