This class can be used to convert a Microsoft Word document to HTML, RTF or plain text using COM objects.
The input document formats can be Microsoft Word DOC, RTF and plain text.
The class can also clean the generated HTML to remove unnecessary markup that Microsoft Word adds.
Of course, you need MsWord installed on the server, and Windows OS.
It doesn't works ? Look below =>
1- your server must be running Win32
2- Microsoft Word must be installed on the server (I tested with Word2000)
3- readfile() is not available under PHP 4.3. You can use the following code to replace it with PHP<4.3
if (str_replace(".", "", phpversion())<"430")
{
function readFile( $f ) {
$out = ""; $lines = file ($f); foreach( $lines as $l ) $out .= $l."\n"; return $out;
}
}
4- try to not open a file on the netword (ie \\server\doc...) unless you fully understand the authentification process
|
|
| Name: |
wordDocumentHandler |
| Base name: |
logantools |
| Description: |
Convert and clean MSWord documents to HTML |
| Version: |
- |
| PHP version: |
- |
| License: |
GNU General Public License (GPL) |
| All time users: |
6791 users |
| All time rank: |
247 |
| Week users: |
6 users |
| Week rank: |
403  |
| |
|
| Ratings | Utility |
Consistency |
Documentation |
Examples |
Tests |
Videos |
Overall |
Rank |
| All time: |
Not sure (59.6%) |
Sufficient (63.5%) |
- |
Sufficient (71.2%) |
- |
- |
Not sure (43.3%) |
1934 |
| Month: |
Not yet rated by the users |
| |
Applications that use this class |
|
|
No application links were specified for this class.

If you know an application of this package, send a message to the
author to add a link here.
| |
Files |
|
|