Solved

MS Words to HML in Coldfusion

Posted on 2014-10-10
10
146 Views
Last Modified: 2014-10-16
We have developed an intranet running on Coldfusion. The administrator now wishes to update the intranet’s content using MS Words. In other words, the administrator will prepare the content of the intranet in MS Words (.docx), and a Coldfusion program should pick up the .docx file and post it to the intranet’s content. Can the .docx document be converted automatically to HTML using ColdFusion so it can be uploaded to the intranet ? Or is there a better way to go about this ?
0
Comment
Question by:Errol Farro
  • 4
  • 2
  • 2
10 Comments
 
LVL 52

Assisted Solution

by:_agx_
_agx_ earned 250 total points
Comment Utility
EDIT:

(No points ... just a few thoughts about MS Word ...)

>> The administrator now wishes to update the intranet’s content using MS Words

Honestly ... I would strongly suggest they rethink that. Anytime a program converts from format A to B, there's usually some degradation in the final result.  It could be minor, but MS Word is complex. If the admin starts getting fancy, it's not easy to predict how the content will be translated when it gets to HTML.  Not to mention the html auto-generated by most programs is utter rubbish ... and almost certainly not cross-browser compatible.  The html is usually massive and not something you'd ever want to try and debug.

To answer the original question, no CF doesn't have any built in support for converting MS Word to HTML.  If you must use it from CF, you'd have to find some 3rd party tool and invoke it from CF - or possbily have the user export the doc to HTML using the MS Word application itself.
0
 

Author Comment

by:Errol Farro
Comment Utility
How about if the user convert the Word document to PDF and then have Coldfusion read the PDF an populate the intranet's content ? Can Coldfusion read the PDF and subsequently convert it to HTML ?
0
 
LVL 32

Accepted Solution

by:
Big Monty earned 250 total points
Comment Utility
agree with the previous suggested, word will just be a pain in the butt to work with and translate. I would see if your admin is up for having a simple page they can visit and enter in their content in a WYSIWYG editor, such as ckEditor. That way, you can process the content from an editor that is specific to the web.
0
 
LVL 52

Expert Comment

by:_agx_
Comment Utility
EDIT:

>> Can Coldfusion read the PDF

It can read the "text" of pdf's, but all you get is plain text ie content not formatting

>> ... and subsequently convert it to HTML ?

No, CF doesn't have any built in support for converting other formats .doc, .pdf, etc... to HTML.  Even if it did, that would probably just exacerbate the loss of fidelity, since now you're doing two conversions instead of one.

I think BigMonty's on the right track with using a WYSIWYG editor. A CMS approach would be manageable, wouldn't require external tools and would allow the admin to update the content dynamically and avoid some of the conversion problems/limitations.
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 52

Expert Comment

by:_agx_
Comment Utility
While I appreciate the points, if decided to go with a WYSIWYG editor - that was actually BigMonty's suggestion :). So feel free to split the points.  Not sure if you can re-open/re-assign yourself. If not, just use the Request Attention link at the bottom of the question and a moderator would be happy to do it for you.
0
 

Author Comment

by:Errol Farro
Comment Utility
I agree with you. If it is possible, I will split the points
0
 
LVL 32

Expert Comment

by:Big Monty
Comment Utility
Meant to respond to this earlier.. While I appreciate the consideration for points, it's not a huge deal for me. I'm just more concerned that you get the help you needed :)
0
 
LVL 52

Expert Comment

by:_agx_
Comment Utility
@BigMonty - Cool. Agreed points aren't the real focus, but if your suggestion was used, only fair to give credit where credit is due :) Also, marking your comment as part of the answer makes it easier for the next guy to quickly spot the solution.

@Errol Farro - Thanks for re-opening it!
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now