MS Word to HTML

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Misael

    MS Word to HTML

    Hi Everyone! First post. I'm from Argentina, but actually living in
    Germany for in a practica. I'm looking for a code to convert Word to
    HTML. Thanks!!

  • Oli Filth

    #2
    Re: MS Word to HTML

    Misael said the following on 29/03/2006 12:12:[color=blue]
    > Hi Everyone! First post. I'm from Argentina, but actually living in
    > Germany for in a practica. I'm looking for a code to convert Word to
    > HTML. Thanks!!
    >[/color]

    Word already does it. Save as --> Save as Type, select *.html.

    However, don't do this, because it will come out like shit.

    --
    Oli

    Comment

    • Misael

      #3
      Re: MS Word to HTML

      I know that function, but i want to do it in the server. The classes i
      find all uses word or i need to install something extra, that's not
      good.

      Comment

      • Jerry Stuckle

        #4
        Re: MS Word to HTML

        Misael wrote:[color=blue]
        > I know that function, but i want to do it in the server. The classes i
        > find all uses word or i need to install something extra, that's not
        > good.
        >[/color]

        I don't think you'll find anything which doesn't require Word or some other
        extra. Converting from a Word document to HTML can be quite complicated.

        --
        =============== ===
        Remove the "x" from my email address
        Jerry Stuckle
        JDS Computer Training Corp.
        jstucklex@attgl obal.net
        =============== ===

        Comment

        • Andy Jeffries

          #5
          Re: MS Word to HTML

          On Wed, 29 Mar 2006 03:12:27 -0800, Misael wrote:[color=blue]
          > Hi Everyone! First post. I'm from Argentina, but actually living in
          > Germany for in a practica. I'm looking for a code to convert Word to HTML.
          > Thanks!![/color]

          There are a couple of command line utilities for Linux to do this.
          Personally I use wvWare (wvHTML for your purposes, although I tend to use
          wvText for what I require).

          Another utility is Antiword, although that doesn't export HTML only
          XML/Docbook - so you'd need to convert that afterwards.

          Cheers,




          --
          Andy Jeffries MBCS CITP ZCE | gPHPEdit Lead Developer
          http://www.gphpedit.org | PHP editor for Gnome 2
          http://www.andyjeffries.co.uk | Personal site and photos

          Comment

          • Andy Jeffries

            #6
            Re: MS Word to HTML

            On Wed, 29 Mar 2006 11:55:46 +0000, Andy Jeffries wrote:
            [color=blue]
            > On Wed, 29 Mar 2006 03:12:27 -0800, Misael wrote:[color=green]
            >> Hi Everyone! First post. I'm from Argentina, but actually living in
            >> Germany for in a practica. I'm looking for a code to convert Word to
            >> HTML. Thanks!![/color]
            >
            > There are a couple of command line utilities for Linux to do this.
            > Personally I use wvWare (wvHTML for your purposes, although I tend to use
            > wvText for what I require).
            >
            > Another utility is Antiword, although that doesn't export HTML only
            > XML/Docbook - so you'd need to convert that afterwards.[/color]

            I just noticed in another post you said without installing anything extra
            - in that case your SOL!

            However, compiling wvware and keeping the binary within your
            webroot shouldn't be hard... Just make sure Apache doesn't have write
            permissions to it.

            Cheers,


            Andy

            --
            Andy Jeffries MBCS CITP ZCE | gPHPEdit Lead Developer
            http://www.gphpedit.org | PHP editor for Gnome 2
            http://www.andyjeffries.co.uk | Personal site and photos

            Comment

            • Misael

              #7
              Re: MS Word to HTML

              I would like to use wvWare, but the server that i use is in windows. : (

              Comment

              • Andy Jeffries

                #8
                Re: MS Word to HTML

                On Wed, 29 Mar 2006 03:58:48 -0800, Misael wrote:[color=blue]
                > I would like to use wvWare, but the server that i use is in windows. : ([/color]

                Wv for Windows


                Cheers,


                Andy

                --
                Andy Jeffries MBCS CITP ZCE | gPHPEdit Lead Developer
                http://www.gphpedit.org | PHP editor for Gnome 2
                http://www.andyjeffries.co.uk | Personal site and photos

                Comment

                • Misael

                  #9
                  Re: MS Word to HTML

                  Thanks, but i still have to install something, and that doesn't help
                  me...i'm not he owner of the server.

                  Comment

                  • Kimmo Laine

                    #10
                    Re: MS Word to HTML

                    "Misael" <misaelzapata@g mail.com> wrote in message
                    news:1143636279 .503361.245800@ g10g2000cwb.goo glegroups.com.. .[color=blue]
                    > Thanks, but i still have to install something, and that doesn't help
                    > me...i'm not he owner of the server.[/color]


                    Since that's the case, don't you think it would be time to re-think the
                    situation? Like why use doc's anyway? Who is the supplier of these word
                    documents and why do they need to be converted to html? Could the supplier
                    use another format instead of word? Since your options converting it at
                    server side are pretty limited, would it be possible to do the conversion in
                    the client side? What's the whole scenario here?

                    --
                    "En ole paha ihminen, mutta omenat ovat elinkeinoni." -Perttu Sirviö
                    spam@outolempi. net | Gedoon-S @ IRCnet | rot13(xvzzb@bhg byrzcv.arg)


                    Comment

                    • Misael

                      #11
                      Re: MS Word to HTML

                      I want to create a database with works of my University, as it is
                      impossible to create and transform hundred of documents, i want to do
                      it with php automatic.

                      Comment

                      • Oli Filth

                        #12
                        Re: MS Word to HTML

                        Misael said the following on 29/03/2006 14:01:[color=blue]
                        > I want to create a database with works of my University, as it is
                        > impossible to create and transform hundred of documents,[/color]

                        Actually, it's not. You can write a VBA macro in Word to process a
                        folder full of Word documents, and re-save them as HTML.
                        [color=blue]
                        > i want to do
                        > it with php automatic.[/color]


                        Either way, why does this require converting everything to HTML? Why
                        can't your database keep things in their original Word format?


                        --
                        Oli

                        Comment

                        • shrini

                          #13
                          Re: MS Word to HTML

                          Good.

                          You can use COM with php.
                          But it needs MS office should be installed in server.

                          using com, do the following,

                          1. open a word document
                          2. copy the content to clipboard
                          3. open a new word doc
                          4. insert <html> <pre>
                          5. paste from clip board
                          6. insert </pre></html>
                          7. save as the document as filename.html

                          Do the same for every documents.

                          This will work if the docs contains only text.

                          If complicated tables, links, diagrams, i dont know.

                          Wishes.

                          T.Shrinivasan.

                          Comment

                          • Roman Ziak

                            #14
                            Re: MS Word to HTML

                            Misael wrote:[color=blue]
                            > I want to create a database with works of my University, as it is
                            > impossible to create and transform hundred of documents, i want to do
                            > it with php automatic.
                            >[/color]

                            You choose the wrong tool.

                            Word has excellent VB scripting. But you will need Word and local access
                            to those documents. That can be achieved via PHP webservice on the said
                            server, which will have 3 functions - something to the extent of:

                            EnumerateDocume nts()
                            DownloadWordDoc ument()
                            UploadHtmlDocum ent()

                            and client on your desktop, which will fetch those documents, convert
                            them and uploads new version back.

                            If you do not have Word, or your desktop is Linux, then Open Office 2.0
                            has excellent Word support and somewhat documented API accessible
                            directly to Basic / Java / JavaScript / Python and indirectly via COM or
                            ..NET technologies.

                            Roman

                            Comment

                            • Misael

                              #15
                              Re: MS Word to HTML

                              The fact is that the entire process must be automatic, all my friends
                              should be able to upload and see what they did in the page. I want to
                              do something as google.

                              Comment

                              Working...