Re: 'View as HTML' Conversions



Rosty Kerei wrote:
"Kevin" <Kevin@xxxxxxxxxxxxxxxxx> ???????/???????? ? ???????? ?????????: news:E4.D0.58090.8FA60554@xxxxxxxxxxxxxxx
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
.



Relevant Pages

  • Re: Forget administrator password
    ... I installed win 2003 server in stand alone mode (no AD/DNS, ... i lost my administrator password, ... because there is most complex configuration in it, i can not install ... Type this into a Google search box: ...
    (microsoft.public.windowsxp.general)
  • Re: Where is Word and EXcel
    ... The most commonly used converters are installed with Microsoft Word by ... Converts documents from WordPerfect 6.0 for DOS and WordPerfect 6.0 and 6.1 ... Install a converter that's supplied with Word ...
    (microsoft.public.windowsxp.setup_deployment)
  • Re: Works to Word
    ... The key phrase "Windows XP/ Word program" doesn't give much information. ... Filters, click to expand the list for Text Converters, click the Works converter that you ... want to install, click on Run from my computer, then click the Update button. ...
    (microsoft.public.windowsxp.general)
  • Re: Word03 SBE - Saving as WordPerfect file...possible?
    ... The converters for Word Perfect are optional part of the Office/Word ... You have to select a custom install and select the converters ...
    (microsoft.public.word.conversions)
  • Re: cant send my resume!
    ... newsgroup post. ... have the appropriate converters, or may be willing to get them. ... so make sure you read the help guide. ... simple - after you install the software, just open your resume, and print ...
    (microsoft.public.outlook)