LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Libreoffice - how can I convert many odt files to doc or pdf automatically? (http://www.linuxquestions.org/questions/linux-software-2/libreoffice-how-can-i-convert-many-odt-files-to-doc-or-pdf-automatically-4175440780/)

charlemagne-is-my-son 12-10-2012 04:29 AM

Libreoffice - how can I convert many odt files to doc or pdf automatically?
 
I have a large number of .odt files. I need to convert them all to doc or pdf format. I know that I could open each and save them as such, but that would take loads of time.

Is there a program that could do this for me en masse or one I could write as a bash script? Any leads or pointers would be much appreciated.

Also, I apologize in advance if this is a repeat question or there's an obvious fix. Google gets blocked like mad here in China (I'm an English teacher) and their "healthy" alternative, Baidu.com, is very bad with English search queries.

Thanks and I'm glad to be here. No expats I've met use linux, so it's really nice to have this resource.

posix04 12-10-2012 05:33 AM

I use unoconv terminal command to convert them.
Install it from your package-manager and run:

Code:

unoconv -f pdf ~/doc/*.odt
~/doc/ is where are my odt documents, you need to indicate where are yours. If you don't indicate it, unoconv won't work.

teckk 12-10-2012 08:29 AM

Found these

http://online2pdf.com/convert/odt2pdf
http://dev.man-online.org/man1/odt2pdf/
www.youtube.com/watch?v=JXTP09hLv0A

EDDY1 12-10-2012 11:32 AM

While not the answer you're looking for, libre office can save in .doc format.Change settings i LibreOffice under Tools>>Options>>General>>Load/Save under "Always save as" select "Microsoft Word 2007XML"


All times are GMT -5. The time now is 08:06 AM.