I have a set of files in .doc format, that need to be converted to .pdf format. I am using Ubuntu linux.
migrated from serverfault.com Jun 24 '10 at 12:33This question came from our site for system and network administrators. |
|||||
|
|||||
|
Alternative 1)
Then navigate to System > Administration > Printing and create a new printer, set it as a PDF file printer, and name it as "pdf". Then run:
Now you'll find your .pdf file in ~/PDF. Alternative 2)
If the tetex-extra package is not available with your distribution, try texlive-base plus texlive-latex-base:
|
|||||||||||||||||
|
|
You can use:
|
|||||||||||||||||
|
|
If you're running X then you can do it through Open Office. Since you're about to object to doing it manually, remember there's some nice macro scripts in Open Office so you can automate it. You can do something similar with AbiWord (AbiWord --to=pdf). If you've not got X then there is antiword, but that just extracts the text - doesn't do any formatting or graphics. There's also wvWare which I've used to bulk extract images from doc files, but I've never tried using it to convert doc files to pdfs. Oh and .docx files may well need something different, but since they're just zipped xml files it shouldn't be too difficult to do something useful with them. For bulk extracting images you just unzip them and copy the images directory, but I've never needed to convert them in Linux. |
|||
|
|
|
Printing to PDF loses a lot of the document metadata (title, authorship, the headings tree that is used for navigation, and so on). Install unoconv, convert with: |
|||||||||||||||||
|
|
You can also do it with AbiWord:
Then you can load .doc files in AbiWord's GUI and export to PDF, or from the commandline:
|
|||
|
|
|
I would try using for Linux
For windows:
PyODConverter requires OpenOffice.org to be running as a service and listening on port (by default) 8100; the simplest way to start OpenOffice.org as a service is from the command line:
|
|||
|
|
|
Open Office is a good way forward, but the conversion fidelity is not always quite right. If you are after a 100% Linux solution then that is the best way forward. However, if you don't mind a single Windows Box and write a little bit of code to interface with it from your Linux system then have a look at this post. I wrote this post so the usual disclaimers apply. |
|||
|
|
Done and Done |
|||||
|
|
If you already install LibreOffice
|
|||
|
|
|
|||||||||||||
|
protected by Community♦ Sep 20 '12 at 17:37
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?