Pdf -> Doc

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

    Pdf -> Doc

    Is there any python module which will convert Acrobat
    PDF files to MS Word documents?

    I googled for it, but could not find much results apart
    from a pdf2doc plugin which needs the compelte acrobat
    installation to work.

    Thanks for any hints.

    -Anand Pillai
  • Cousin Stanley

    #2
    Re: Pdf -> Doc

    | Is there any python module which will convert Acrobat PDF files
    | to MS Word documents?
    | ...

    I recently found a command-line tool
    that will convert PDF files to HTML ....

    Download pdftohtml for free. Pdftohtml is a tool based on the Xpdf package which translates pdf documents into html format.


    I've only tried it with a few files,
    but the only failure I had was with
    a PDF file that I also couldn't copy/paste
    from using the Adobe Acrobat reader ....

    Perhaps a Python wrapper for this program
    could suffice along with subsequent HTML to Doc
    conversion if needed ....

    --
    Cousin Stanley
    Human Being
    Phoenix, Arizona

    Comment

    • John Niven

      #3
      Re: Pdf -> Doc

      Anand Pillai wrote:[color=blue]
      > Is there any python module which will convert Acrobat
      > PDF files to MS Word documents?
      >
      > I googled for it, but could not find much results apart
      > from a pdf2doc plugin which needs the compelte acrobat
      > installation to work.
      >
      > Thanks for any hints.
      >
      > -Anand Pillai[/color]


      Could you use Jython (the Java port of Python) [http://www.jython.org]?
      If that was an option, you could use Cocoon
      [http://cocoon.apache.org/2.1/], which I *think* can convert to/from
      PDF. I also *think* it can convert to DOC, and it can definitely
      convert to RTF.

      Sorry to be so vague, not used Coccon in anger before, but looked at it
      in some depth a while back.

      Hope this is some use,
      Best wishes

      John

      --
      John Niven
      [Reply via newsgroup]

      Comment

      • jb

        #4
        Re: Pdf -> Doc

        you can convert the pdf in any format like html or rtf with a 3rd party tool
        and then, if you have word on on machine, you can with python use win23com
        to do a macro which will open word, open your exported file and save it as a
        doc file. then you can batch your filez

        you can even write the macro string in python, and execute it on the fly
        through word

        good luck

        jb


        "Anand Pillai" <pythonguy@Hotp op.com> a écrit dans le message de
        news:84fc4588.0 310272223.177e3 3c4@posting.goo gle.com...[color=blue]
        > Is there any python module which will convert Acrobat
        > PDF files to MS Word documents?
        >
        > I googled for it, but could not find much results apart
        > from a pdf2doc plugin which needs the compelte acrobat
        > installation to work.
        >
        > Thanks for any hints.
        >
        > -Anand Pillai[/color]


        Comment

        Working...