I have a set of files in .doc format, that need to be converted to .pdf format. I am using Ubuntu linux.
|
feedback
|
migrated from serverfault.com Jun 24 '10 at 12:33
This question came from our site for system administrators and desktop support professionals.
|
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 distro, try texlive-base plus texlive-latex-base:
| ||||
feedback
|
|
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. | |||
|
feedback
|
|
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: | |||||
feedback
|
|
You can use:
| ||||
feedback
|
| |||||
feedback
|
|
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:
| |||
|
feedback
|
|
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. | |||
|
feedback
|
|
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:
| |||
|
feedback
|