LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-10-2012, 04:29 AM   #1
charlemagne-is-my-son
Member
 
Registered: Dec 2012
Location: Shanghai
Distribution: Xubuntu, 14.04
Posts: 54

Rep: Reputation: Disabled
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.
 
Old 12-10-2012, 05:33 AM   #2
posix04
Member
 
Registered: Dec 2012
Posts: 32

Rep: Reputation: Disabled
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.

Last edited by posix04; 12-10-2012 at 05:50 AM.
 
4 members found this post helpful.
Old 12-10-2012, 08:29 AM   #3
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,103
Blog Entries: 6

Rep: Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822
Found these

http://online2pdf.com/convert/odt2pdf
http://dev.man-online.org/man1/odt2pdf/
www.youtube.com/watch?v=JXTP09hLv0A
 
1 members found this post helpful.
Old 12-10-2012, 11:32 AM   #4
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
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"
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to convert html to odt or doc using linux command line? zoghbi Linux - Newbie 5 12-26-2011 03:49 AM
convert odt or .doc into html linuxmandrake Linux - Software 6 02-23-2008 03:48 AM
Software to automatically convert DOC into PDF rsmccain Linux - Software 3 11-23-2006 10:19 AM
Convert .DOC into .PDF automatically MPANDYA Linux - Software 2 11-08-2005 08:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration