document converter with python and open/libreoffice

docConvWP (it is actually .zip, you have to rename it, after you downloaded it) is a python script that converts .doc- into pdf files. optionally you can extract the images (the converter of libre/openoffice extracts them while converting a document into a web document.

you can call the script via:

# python start.py (doc-dir) (pdf-dir) [image-dir]

Then the script goes into every dir in doc-dir and puts all .doc-files as .pdf into the pdf-dir (plain, without the old folder-structure). I work with a script made by oooninja, which does the whole part of the converting. in order to start the converting process, you need to start open/libreoffice into some kind of server mode.

sources;

http://www.oooninja.com/2008/02/batch-command-line-file-conversion-with.html

Advertisements

~ by frankooh on 2012-02-12T14:11:07+00:00.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: