You are here: Re: Search inside PDF or MS Word with PHP, possible? « PHP Programming Language « IT news, forums, messages
Re: Search inside PDF or MS Word with PHP, possible?

Posted by Erwin Moller on 11/22/05 15:37

erwinschrijver@gmail.com wrote:

> Thanx man,
> Someone got an answer for me for the MS Word?

Hi,

I remembered some package at phpclasses.org

Here is the link:
http://phpclasses.chimit.nl/browse/package/1352.html

That package can make html from MS Word.
I expect if you browse through the sourcecode you will find all relevant
tricks to do stuff yourself.
I didn't study it at all, so maybe I talk bull. Check yourself. :-)


summary:
----------------------

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
------------------------------------

Regards,
Erwin Moller

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация