Return to Snippet

Revision: 8306
at September 12, 2008 08:56 by jonhenshaw

Initial Code
$word = new COM("word.application") or die ("Could not initialise MS Word object.");
// Extract content.
$content = (string) $word->ActiveDocument->Content;
echo $content;
$word = null;

Initial URL

Initial Description
Requires an insecure, I mean Windows server (doh!)

Initial Title
Extracting text from Word Documents via PHP and COM

Initial Tags

Initial Language