Re: 'View as HTML' Conversions



"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();

--
Sincerely,
Rosty Kerei
.



Relevant Pages

  • Re: Watt RF vs Watt DC
    ... > Refers to another thread. ... > (html and pdf mostly) found in a Google search for "watts RMS" ...
    (sci.electronics.design)
  • Re: Converting HTML to ASCII
    ... I'm looking for a Python lib to convert HTML to ... a quick Google search showed ... > ascii char). ...
    (comp.lang.python)
  • Re: newbie html editor
    ... > and be able to generate html, doing really nothing more than this: ... > I'm not so newbie, but not skilled enough to get started? ... Well, you can easily find the RTF spec via a Google search, ... and searching for "Delphi parser" will give you lots of links ...
    (comp.lang.pascal.delphi.misc)
  • Re: Producing an image from HTML.
    ... When I do the Google search, the first 50 or so all appear to be how to get ... the html from a web page into a string. ... >> I've been looking for a solution that can programmaticaly capture the ... >>> include HTML code that I need to convert on the fly behind the scenes. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Recursively scraping web pages for embedded links and files
    ... I've managed to get the HTML of a target page ... Should I be using Regex? ... If you're new to working with HTML docs from Excel then it may be a long ... multiple levels of subdirectories. ...
    (microsoft.public.excel.programming)