Rosty Kerei wrote:
"Kevin" <[EMAIL PROTECTED]> ???????/???????? ? ???????? ?????????: news:[EMAIL PROTECTED]
Hi,

We are trying to create a script which (the same as google search and gmail) allows for PDF's, Doc's, Excel etc to be converted to HTML documents dynamically, this is just in case users want to view documents but don't have the necessary software. The HTML needs to keep as much of the styling as possible.

Does anyone know how google have done this? or does anyone know any PHP equivalents, we are using the Windows IIS server.


You may try to use COM to convert MS Office files to HTML, something like

$doc = new COM('somewordfile.doc');
$doc->saveAs('somewordfile.html', 10);
$doc->close();

Hi Thanks for that, the com library seems the way to do it, just a bit unsure what I would need to do, I take it I would need to install the office suite on the server, would I also need to install all converters on the server too? for example would i need to install the adobe acrobat printer, so that I can call the print function and print it to that printer, then move the output file to where i want??!

Could you provide just one example of how to open a word doc, print it to a printer (say an adobe printer) and move it to a folder on the system?!

What security holes would this leave open and is there any other information regarding security I could up on?

Thanks for your help
Kevin

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to