Fastream Technologies wrote:

> Hello,
> 
> We have a word document that we convert to pdf with acrobat pro and publish 
> on the web as an user guide. I wonder if there is an easy way to transform 
> it to separate .html's wrt the table of contents? (each topic in one page)

Not sure about "easy" necessarily, but Word VBA (or Delphi COM 
automating Word) could certainly do that.

At first blush the approach would go something like:
* Iterate your TOC
* Locate each section of the document the TOC refers to
* Construct a Range out of the section
* Write the Range to a new temporary document
* Save the temporary document as HTML

Now, I won't vouch for the quality of HTML that Word generates.

An alternative would be to copy the sections to the clipboard and paste 
them into a more effective HTML editor. Publisher is also automatable, 
though I'm unclear that its HTML is much better than Word's.

HTH

Stephen Posey
[EMAIL PROTECTED]

__________________________________________________
Delphi-Talk mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi-talk

Reply via email to