Working but not very well written python script for converting files to PDF recursively. I have used it succesfully on a complex folder structure of more than 5000 files on Linux Ubuntu.
This is my very first Python script, but it is working. You can batch convert files with
unoconv to PDF format.
You need the following to be installed:
- Libre Office
How it works
When you start this program with:
without any parameters it will use the folder where it resides as the base folder for the conversion
You can however use:
python /path/to/script/py-unoconv-batch-resursive --in="/path/to/documents"
You can change this by adding:
Now it will only select these extensions
The filenames generated are when the file converted is
somefile.docx, will become
This is to avoid that a filename with
docx with the same basename in a folder will be overwritten.