Converting MSWord Docs to PDF
Steve Holden
steve at holdenweb.com
Tue Oct 10 06:04:59 EDT 2006
Sybren Stuvel wrote:
> melv at awc.edu enlightened us with:
>
>>is it possible to convert MSword docs into PDF format?
>
>
> Yes, it is. check out http://www.stuvel.eu/ooo-python#header3. It's
> about converting Excel to PDF, but it equally applies to MSWord.
>
However, this assumed perfect import of the .doc file into Open Office,
which can't be guaranteed (though it gets better every release). So you
may want to do some experimentation to find out how well the import
proceeds.
If that *isn't* satisfactory then a modest investment in Adobe
Acrobat/Distiller plus the use of Python's scripting facilities to
direct the conversion would be preferable to spending a huge amount of
time writing a hand-crafted solution.
>> i told my future employer that i could, because i knew
>> of the COM scripting abilites that activePython had.
>> and i knew there was modules for PDF creation such as
>> reportlabs.
>>
And the next time you are bragging in that way, couch your boasts in
conditional terms to avoid losing face should you happen to be wrong. A
lot will depend on the complexity of the Word documents.
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://holdenweb.blogspot.com
Recent Ramblings http://del.icio.us/steve.holden
More information about the Python-list
mailing list