Piero Blog

Wednesday, October 07, 2009

Convert ODT to PDF, working...

unoconv seems to be the best option. Not working on Arch or Ubuntu at the moment.
I'm using go-oo. Get  DocumentConverter.py here http://www.artofsolving.com/opensource/pyodconverter

Now on Ubuntu:

soffice -accept="socket,port=8100;urp;"
python ./DocumentConverter.py ./input.doc ./output.pdf


or
for i in *.doc ; do python ./DocumentConverter.py "$i" "$i.pdf" ; done; 


NUP it up
for i in *.pdf ; do echo  pdfnup --nup 2x2 "$i" ; done;
JOIN them
pdfjoin *2x2.pdf
PRINT
lpr *joined.pdf


0 Comments:

Post a Comment

<< Home