How to convert Word (doc) to PDF in linux?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
I have a set of files in .doc format, that need to be converted to .pdf format. I am using Ubuntu linux.
linux microsoft-word pdf conversion
migrated from serverfault.com Jun 24 '10 at 12:33
This question came from our site for system and network administrators.
add a comment |
I have a set of files in .doc format, that need to be converted to .pdf format. I am using Ubuntu linux.
linux microsoft-word pdf conversion
migrated from serverfault.com Jun 24 '10 at 12:33
This question came from our site for system and network administrators.
possible duplicate of Batch-convert Word-documents to PDF's (free)
– Ƭᴇcʜιᴇ007
Dec 4 '14 at 19:20
add a comment |
I have a set of files in .doc format, that need to be converted to .pdf format. I am using Ubuntu linux.
linux microsoft-word pdf conversion
I have a set of files in .doc format, that need to be converted to .pdf format. I am using Ubuntu linux.
linux microsoft-word pdf conversion
linux microsoft-word pdf conversion
edited Nov 23 '10 at 8:02
Mehper C. Palavuzlar
43.8k42176233
43.8k42176233
asked Jun 24 '10 at 8:40
nitins
migrated from serverfault.com Jun 24 '10 at 12:33
This question came from our site for system and network administrators.
migrated from serverfault.com Jun 24 '10 at 12:33
This question came from our site for system and network administrators.
possible duplicate of Batch-convert Word-documents to PDF's (free)
– Ƭᴇcʜιᴇ007
Dec 4 '14 at 19:20
add a comment |
possible duplicate of Batch-convert Word-documents to PDF's (free)
– Ƭᴇcʜιᴇ007
Dec 4 '14 at 19:20
possible duplicate of Batch-convert Word-documents to PDF's (free)
– Ƭᴇcʜιᴇ007
Dec 4 '14 at 19:20
possible duplicate of Batch-convert Word-documents to PDF's (free)
– Ƭᴇcʜιᴇ007
Dec 4 '14 at 19:20
add a comment |
10 Answers
10
active
oldest
votes
Alternative 1)
sudo apt-get install cups-pdf
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:
oowriter -pt pdf your_word_file.doc
Now you'll find your .pdf file in ~/PDF.
Alternative 2)
sudo apt-get install wv tetex-extra ghostscript
wvPDF test.doc test.pdf
If the tetex-extra package is not available with your distribution, try texlive-base plus texlive-latex-base:
sudo apt-get install wv texlive-base texlive-latex-base ghostscript
wvPDF test.doc test.pdf
1
inoowriter -pt pdf your_word_file.doc
, is the printer specified? In my computer, it will try to print to an actual printer instead of a pdf printer.
– Tim
Aug 8 '11 at 18:40
How can I change the ~/PDF path to somewhere else ?
– hd.
Jan 13 '13 at 5:05
3
OpenOffice is generally now replaced with LibreOffice, so the command islowriter
– user60561
Mar 7 '14 at 1:05
3
for LibreOffice, the command islowriter --convert-to pdf your_word_file.doc
and the default is to output in the current directory.
– GreyBeardedGeek
May 19 '14 at 2:43
wvPDF
not found in Lubuntu,wv
version1.2.9-4.2
is installed
– Timo
May 14 '18 at 14:40
add a comment |
You can use:
oowriter -convert-to pdf:writer_pdf_Export doc_file.doc
2
Short and simple - however, if one is running LibreOffice (or is running OO.org and cannot findoowriter
) -- the command isswriter -convert-to pdf:writer_pdf_Export x.doc
.
– new123456
Jan 21 '12 at 4:05
For Libreoffice, this works:writer -convert-to pdf:writer_pdf_Export file.docx
– kolypto
Jul 3 '12 at 15:08
3
On my Ubuntu 12.04 with the default LibreOffice, I had to uselowriter
instead of (oo|s| )writer. Then it worked with the same arguments as above:lowriter -convert-to pdf:writer_pdf_Export file.docx
. The .pdfs are created in the current directory.
– mivk
Sep 6 '12 at 23:05
I like this. On my 3.6.6.2 -convert-to pdf chose writer_pdf_Export as default. Also something to keep in mind - don't have any LO instances open when running this command, otherwise it will just open an empty new document in the GUI. Can this be avoided somehow?
– lkraav
Jun 28 '13 at 12:24
add a comment |
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.
add a comment |
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: unoconv -fpdf file1.doc file2.doc…
Thanks for the suggestion. But I think the syntax provided by you is wrong. $ unoconv myfile.doc It converts to PDF format by default and so you get myfile.pdf on executing the command.
– nitins
Jun 24 '10 at 11:07
This is the best solution, it totally handles talking to LibreOffice for you.
– thirtythreeforty
Oct 11 '13 at 2:53
Agreed that this is the best answer. A better answer however, would be one that was as simple as this, but did not require installing the gigantic libreoffice.
– speedplane
Mar 22 '16 at 8:28
add a comment |
You can also do it with AbiWord:
sudo apt-get install abiword
Then you can load .doc files in AbiWord's GUI and export to PDF, or from the commandline:
abiword --to=pdf filename.doc
add a comment |
If you already install LibreOffice
lowriter --headless --convert-to pdf *.doc
add a comment |
I would try using for Linux
$ /opt/openoffice.org3.1/program/python DocumentConverter.py test.odt test.pdf
For windows:
"C:Program FilesOpenOffice.org 3.1programpython" DocumentConverter.py test.odt test.pdf
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:
"C:Program FilesOpenOffice.org 3.1programsoffice" -accept="socket,port=8100;urp;"
add a comment |
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.
add a comment |
- Open -> Open Office (3.2 in my case)
- Open Document you want to export
- File->Export as PDF
- Press: Export
- Choose file name
Done and Done
Redundant answer.
– Isaac Rabinovitch
Oct 22 '12 at 0:51
add a comment |
- Install OSE VirtualBox from the software center
- Install Windows inside VirtualBox
- Install MS Office in the virtual Windows
- Install
dopdf
in the virtual Windows - Set
dopdf
as your default printer during the installation. - Open the
*.doc
in the virtual Office and print it to thedopdf
virtual printer. - The
*.pdf
file will appear in theMy Documents
folder of the virtual Windows - Send it as email attachment to wherever you need to send it.
if you use MS Office just install "Save as PDF or XPS" microsoft.com/download/en/details.aspx?id=7
– Remus Rigo
Jul 14 '11 at 16:32
7
This is a lot of trouble and unnecessary licenses for simple conversions that can be done natively in linux
– MaQleod
Aug 5 '11 at 0:48
This is a Rube Goldberg machine. Don't use this. There are so many native ways to do it.
– Rob K
Apr 10 '14 at 15:54
add a comment |
10 Answers
10
active
oldest
votes
10 Answers
10
active
oldest
votes
active
oldest
votes
active
oldest
votes
Alternative 1)
sudo apt-get install cups-pdf
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:
oowriter -pt pdf your_word_file.doc
Now you'll find your .pdf file in ~/PDF.
Alternative 2)
sudo apt-get install wv tetex-extra ghostscript
wvPDF test.doc test.pdf
If the tetex-extra package is not available with your distribution, try texlive-base plus texlive-latex-base:
sudo apt-get install wv texlive-base texlive-latex-base ghostscript
wvPDF test.doc test.pdf
1
inoowriter -pt pdf your_word_file.doc
, is the printer specified? In my computer, it will try to print to an actual printer instead of a pdf printer.
– Tim
Aug 8 '11 at 18:40
How can I change the ~/PDF path to somewhere else ?
– hd.
Jan 13 '13 at 5:05
3
OpenOffice is generally now replaced with LibreOffice, so the command islowriter
– user60561
Mar 7 '14 at 1:05
3
for LibreOffice, the command islowriter --convert-to pdf your_word_file.doc
and the default is to output in the current directory.
– GreyBeardedGeek
May 19 '14 at 2:43
wvPDF
not found in Lubuntu,wv
version1.2.9-4.2
is installed
– Timo
May 14 '18 at 14:40
add a comment |
Alternative 1)
sudo apt-get install cups-pdf
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:
oowriter -pt pdf your_word_file.doc
Now you'll find your .pdf file in ~/PDF.
Alternative 2)
sudo apt-get install wv tetex-extra ghostscript
wvPDF test.doc test.pdf
If the tetex-extra package is not available with your distribution, try texlive-base plus texlive-latex-base:
sudo apt-get install wv texlive-base texlive-latex-base ghostscript
wvPDF test.doc test.pdf
1
inoowriter -pt pdf your_word_file.doc
, is the printer specified? In my computer, it will try to print to an actual printer instead of a pdf printer.
– Tim
Aug 8 '11 at 18:40
How can I change the ~/PDF path to somewhere else ?
– hd.
Jan 13 '13 at 5:05
3
OpenOffice is generally now replaced with LibreOffice, so the command islowriter
– user60561
Mar 7 '14 at 1:05
3
for LibreOffice, the command islowriter --convert-to pdf your_word_file.doc
and the default is to output in the current directory.
– GreyBeardedGeek
May 19 '14 at 2:43
wvPDF
not found in Lubuntu,wv
version1.2.9-4.2
is installed
– Timo
May 14 '18 at 14:40
add a comment |
Alternative 1)
sudo apt-get install cups-pdf
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:
oowriter -pt pdf your_word_file.doc
Now you'll find your .pdf file in ~/PDF.
Alternative 2)
sudo apt-get install wv tetex-extra ghostscript
wvPDF test.doc test.pdf
If the tetex-extra package is not available with your distribution, try texlive-base plus texlive-latex-base:
sudo apt-get install wv texlive-base texlive-latex-base ghostscript
wvPDF test.doc test.pdf
Alternative 1)
sudo apt-get install cups-pdf
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:
oowriter -pt pdf your_word_file.doc
Now you'll find your .pdf file in ~/PDF.
Alternative 2)
sudo apt-get install wv tetex-extra ghostscript
wvPDF test.doc test.pdf
If the tetex-extra package is not available with your distribution, try texlive-base plus texlive-latex-base:
sudo apt-get install wv texlive-base texlive-latex-base ghostscript
wvPDF test.doc test.pdf
edited Oct 1 '16 at 12:13
Community♦
1
1
answered Jun 24 '10 at 9:19
Mehper C. PalavuzlarMehper C. Palavuzlar
43.8k42176233
43.8k42176233
1
inoowriter -pt pdf your_word_file.doc
, is the printer specified? In my computer, it will try to print to an actual printer instead of a pdf printer.
– Tim
Aug 8 '11 at 18:40
How can I change the ~/PDF path to somewhere else ?
– hd.
Jan 13 '13 at 5:05
3
OpenOffice is generally now replaced with LibreOffice, so the command islowriter
– user60561
Mar 7 '14 at 1:05
3
for LibreOffice, the command islowriter --convert-to pdf your_word_file.doc
and the default is to output in the current directory.
– GreyBeardedGeek
May 19 '14 at 2:43
wvPDF
not found in Lubuntu,wv
version1.2.9-4.2
is installed
– Timo
May 14 '18 at 14:40
add a comment |
1
inoowriter -pt pdf your_word_file.doc
, is the printer specified? In my computer, it will try to print to an actual printer instead of a pdf printer.
– Tim
Aug 8 '11 at 18:40
How can I change the ~/PDF path to somewhere else ?
– hd.
Jan 13 '13 at 5:05
3
OpenOffice is generally now replaced with LibreOffice, so the command islowriter
– user60561
Mar 7 '14 at 1:05
3
for LibreOffice, the command islowriter --convert-to pdf your_word_file.doc
and the default is to output in the current directory.
– GreyBeardedGeek
May 19 '14 at 2:43
wvPDF
not found in Lubuntu,wv
version1.2.9-4.2
is installed
– Timo
May 14 '18 at 14:40
1
1
in
oowriter -pt pdf your_word_file.doc
, is the printer specified? In my computer, it will try to print to an actual printer instead of a pdf printer.– Tim
Aug 8 '11 at 18:40
in
oowriter -pt pdf your_word_file.doc
, is the printer specified? In my computer, it will try to print to an actual printer instead of a pdf printer.– Tim
Aug 8 '11 at 18:40
How can I change the ~/PDF path to somewhere else ?
– hd.
Jan 13 '13 at 5:05
How can I change the ~/PDF path to somewhere else ?
– hd.
Jan 13 '13 at 5:05
3
3
OpenOffice is generally now replaced with LibreOffice, so the command is
lowriter
– user60561
Mar 7 '14 at 1:05
OpenOffice is generally now replaced with LibreOffice, so the command is
lowriter
– user60561
Mar 7 '14 at 1:05
3
3
for LibreOffice, the command is
lowriter --convert-to pdf your_word_file.doc
and the default is to output in the current directory.– GreyBeardedGeek
May 19 '14 at 2:43
for LibreOffice, the command is
lowriter --convert-to pdf your_word_file.doc
and the default is to output in the current directory.– GreyBeardedGeek
May 19 '14 at 2:43
wvPDF
not found in Lubuntu, wv
version 1.2.9-4.2
is installed– Timo
May 14 '18 at 14:40
wvPDF
not found in Lubuntu, wv
version 1.2.9-4.2
is installed– Timo
May 14 '18 at 14:40
add a comment |
You can use:
oowriter -convert-to pdf:writer_pdf_Export doc_file.doc
2
Short and simple - however, if one is running LibreOffice (or is running OO.org and cannot findoowriter
) -- the command isswriter -convert-to pdf:writer_pdf_Export x.doc
.
– new123456
Jan 21 '12 at 4:05
For Libreoffice, this works:writer -convert-to pdf:writer_pdf_Export file.docx
– kolypto
Jul 3 '12 at 15:08
3
On my Ubuntu 12.04 with the default LibreOffice, I had to uselowriter
instead of (oo|s| )writer. Then it worked with the same arguments as above:lowriter -convert-to pdf:writer_pdf_Export file.docx
. The .pdfs are created in the current directory.
– mivk
Sep 6 '12 at 23:05
I like this. On my 3.6.6.2 -convert-to pdf chose writer_pdf_Export as default. Also something to keep in mind - don't have any LO instances open when running this command, otherwise it will just open an empty new document in the GUI. Can this be avoided somehow?
– lkraav
Jun 28 '13 at 12:24
add a comment |
You can use:
oowriter -convert-to pdf:writer_pdf_Export doc_file.doc
2
Short and simple - however, if one is running LibreOffice (or is running OO.org and cannot findoowriter
) -- the command isswriter -convert-to pdf:writer_pdf_Export x.doc
.
– new123456
Jan 21 '12 at 4:05
For Libreoffice, this works:writer -convert-to pdf:writer_pdf_Export file.docx
– kolypto
Jul 3 '12 at 15:08
3
On my Ubuntu 12.04 with the default LibreOffice, I had to uselowriter
instead of (oo|s| )writer. Then it worked with the same arguments as above:lowriter -convert-to pdf:writer_pdf_Export file.docx
. The .pdfs are created in the current directory.
– mivk
Sep 6 '12 at 23:05
I like this. On my 3.6.6.2 -convert-to pdf chose writer_pdf_Export as default. Also something to keep in mind - don't have any LO instances open when running this command, otherwise it will just open an empty new document in the GUI. Can this be avoided somehow?
– lkraav
Jun 28 '13 at 12:24
add a comment |
You can use:
oowriter -convert-to pdf:writer_pdf_Export doc_file.doc
You can use:
oowriter -convert-to pdf:writer_pdf_Export doc_file.doc
edited Aug 5 '11 at 17:07
3498DB
15.9k114862
15.9k114862
answered Aug 5 '11 at 0:18
Fabio JosueFabio Josue
14112
14112
2
Short and simple - however, if one is running LibreOffice (or is running OO.org and cannot findoowriter
) -- the command isswriter -convert-to pdf:writer_pdf_Export x.doc
.
– new123456
Jan 21 '12 at 4:05
For Libreoffice, this works:writer -convert-to pdf:writer_pdf_Export file.docx
– kolypto
Jul 3 '12 at 15:08
3
On my Ubuntu 12.04 with the default LibreOffice, I had to uselowriter
instead of (oo|s| )writer. Then it worked with the same arguments as above:lowriter -convert-to pdf:writer_pdf_Export file.docx
. The .pdfs are created in the current directory.
– mivk
Sep 6 '12 at 23:05
I like this. On my 3.6.6.2 -convert-to pdf chose writer_pdf_Export as default. Also something to keep in mind - don't have any LO instances open when running this command, otherwise it will just open an empty new document in the GUI. Can this be avoided somehow?
– lkraav
Jun 28 '13 at 12:24
add a comment |
2
Short and simple - however, if one is running LibreOffice (or is running OO.org and cannot findoowriter
) -- the command isswriter -convert-to pdf:writer_pdf_Export x.doc
.
– new123456
Jan 21 '12 at 4:05
For Libreoffice, this works:writer -convert-to pdf:writer_pdf_Export file.docx
– kolypto
Jul 3 '12 at 15:08
3
On my Ubuntu 12.04 with the default LibreOffice, I had to uselowriter
instead of (oo|s| )writer. Then it worked with the same arguments as above:lowriter -convert-to pdf:writer_pdf_Export file.docx
. The .pdfs are created in the current directory.
– mivk
Sep 6 '12 at 23:05
I like this. On my 3.6.6.2 -convert-to pdf chose writer_pdf_Export as default. Also something to keep in mind - don't have any LO instances open when running this command, otherwise it will just open an empty new document in the GUI. Can this be avoided somehow?
– lkraav
Jun 28 '13 at 12:24
2
2
Short and simple - however, if one is running LibreOffice (or is running OO.org and cannot find
oowriter
) -- the command is swriter -convert-to pdf:writer_pdf_Export x.doc
.– new123456
Jan 21 '12 at 4:05
Short and simple - however, if one is running LibreOffice (or is running OO.org and cannot find
oowriter
) -- the command is swriter -convert-to pdf:writer_pdf_Export x.doc
.– new123456
Jan 21 '12 at 4:05
For Libreoffice, this works:
writer -convert-to pdf:writer_pdf_Export file.docx
– kolypto
Jul 3 '12 at 15:08
For Libreoffice, this works:
writer -convert-to pdf:writer_pdf_Export file.docx
– kolypto
Jul 3 '12 at 15:08
3
3
On my Ubuntu 12.04 with the default LibreOffice, I had to use
lowriter
instead of (oo|s| )writer. Then it worked with the same arguments as above: lowriter -convert-to pdf:writer_pdf_Export file.docx
. The .pdfs are created in the current directory.– mivk
Sep 6 '12 at 23:05
On my Ubuntu 12.04 with the default LibreOffice, I had to use
lowriter
instead of (oo|s| )writer. Then it worked with the same arguments as above: lowriter -convert-to pdf:writer_pdf_Export file.docx
. The .pdfs are created in the current directory.– mivk
Sep 6 '12 at 23:05
I like this. On my 3.6.6.2 -convert-to pdf chose writer_pdf_Export as default. Also something to keep in mind - don't have any LO instances open when running this command, otherwise it will just open an empty new document in the GUI. Can this be avoided somehow?
– lkraav
Jun 28 '13 at 12:24
I like this. On my 3.6.6.2 -convert-to pdf chose writer_pdf_Export as default. Also something to keep in mind - don't have any LO instances open when running this command, otherwise it will just open an empty new document in the GUI. Can this be avoided somehow?
– lkraav
Jun 28 '13 at 12:24
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
answered Jun 24 '10 at 9:11
kaerastkaerast
445211
445211
add a comment |
add a comment |
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: unoconv -fpdf file1.doc file2.doc…
Thanks for the suggestion. But I think the syntax provided by you is wrong. $ unoconv myfile.doc It converts to PDF format by default and so you get myfile.pdf on executing the command.
– nitins
Jun 24 '10 at 11:07
This is the best solution, it totally handles talking to LibreOffice for you.
– thirtythreeforty
Oct 11 '13 at 2:53
Agreed that this is the best answer. A better answer however, would be one that was as simple as this, but did not require installing the gigantic libreoffice.
– speedplane
Mar 22 '16 at 8:28
add a comment |
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: unoconv -fpdf file1.doc file2.doc…
Thanks for the suggestion. But I think the syntax provided by you is wrong. $ unoconv myfile.doc It converts to PDF format by default and so you get myfile.pdf on executing the command.
– nitins
Jun 24 '10 at 11:07
This is the best solution, it totally handles talking to LibreOffice for you.
– thirtythreeforty
Oct 11 '13 at 2:53
Agreed that this is the best answer. A better answer however, would be one that was as simple as this, but did not require installing the gigantic libreoffice.
– speedplane
Mar 22 '16 at 8:28
add a comment |
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: unoconv -fpdf file1.doc file2.doc…
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: unoconv -fpdf file1.doc file2.doc…
answered Jun 24 '10 at 10:27
TobuTobu
2,4791421
2,4791421
Thanks for the suggestion. But I think the syntax provided by you is wrong. $ unoconv myfile.doc It converts to PDF format by default and so you get myfile.pdf on executing the command.
– nitins
Jun 24 '10 at 11:07
This is the best solution, it totally handles talking to LibreOffice for you.
– thirtythreeforty
Oct 11 '13 at 2:53
Agreed that this is the best answer. A better answer however, would be one that was as simple as this, but did not require installing the gigantic libreoffice.
– speedplane
Mar 22 '16 at 8:28
add a comment |
Thanks for the suggestion. But I think the syntax provided by you is wrong. $ unoconv myfile.doc It converts to PDF format by default and so you get myfile.pdf on executing the command.
– nitins
Jun 24 '10 at 11:07
This is the best solution, it totally handles talking to LibreOffice for you.
– thirtythreeforty
Oct 11 '13 at 2:53
Agreed that this is the best answer. A better answer however, would be one that was as simple as this, but did not require installing the gigantic libreoffice.
– speedplane
Mar 22 '16 at 8:28
Thanks for the suggestion. But I think the syntax provided by you is wrong. $ unoconv myfile.doc It converts to PDF format by default and so you get myfile.pdf on executing the command.
– nitins
Jun 24 '10 at 11:07
Thanks for the suggestion. But I think the syntax provided by you is wrong. $ unoconv myfile.doc It converts to PDF format by default and so you get myfile.pdf on executing the command.
– nitins
Jun 24 '10 at 11:07
This is the best solution, it totally handles talking to LibreOffice for you.
– thirtythreeforty
Oct 11 '13 at 2:53
This is the best solution, it totally handles talking to LibreOffice for you.
– thirtythreeforty
Oct 11 '13 at 2:53
Agreed that this is the best answer. A better answer however, would be one that was as simple as this, but did not require installing the gigantic libreoffice.
– speedplane
Mar 22 '16 at 8:28
Agreed that this is the best answer. A better answer however, would be one that was as simple as this, but did not require installing the gigantic libreoffice.
– speedplane
Mar 22 '16 at 8:28
add a comment |
You can also do it with AbiWord:
sudo apt-get install abiword
Then you can load .doc files in AbiWord's GUI and export to PDF, or from the commandline:
abiword --to=pdf filename.doc
add a comment |
You can also do it with AbiWord:
sudo apt-get install abiword
Then you can load .doc files in AbiWord's GUI and export to PDF, or from the commandline:
abiword --to=pdf filename.doc
add a comment |
You can also do it with AbiWord:
sudo apt-get install abiword
Then you can load .doc files in AbiWord's GUI and export to PDF, or from the commandline:
abiword --to=pdf filename.doc
You can also do it with AbiWord:
sudo apt-get install abiword
Then you can load .doc files in AbiWord's GUI and export to PDF, or from the commandline:
abiword --to=pdf filename.doc
answered Oct 12 '11 at 14:45
frabjousfrabjous
8,63822726
8,63822726
add a comment |
add a comment |
If you already install LibreOffice
lowriter --headless --convert-to pdf *.doc
add a comment |
If you already install LibreOffice
lowriter --headless --convert-to pdf *.doc
add a comment |
If you already install LibreOffice
lowriter --headless --convert-to pdf *.doc
If you already install LibreOffice
lowriter --headless --convert-to pdf *.doc
edited Feb 6 at 21:11
palswim
1,79382953
1,79382953
answered Dec 27 '17 at 12:12
caminocamino
16228
16228
add a comment |
add a comment |
I would try using for Linux
$ /opt/openoffice.org3.1/program/python DocumentConverter.py test.odt test.pdf
For windows:
"C:Program FilesOpenOffice.org 3.1programpython" DocumentConverter.py test.odt test.pdf
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:
"C:Program FilesOpenOffice.org 3.1programsoffice" -accept="socket,port=8100;urp;"
add a comment |
I would try using for Linux
$ /opt/openoffice.org3.1/program/python DocumentConverter.py test.odt test.pdf
For windows:
"C:Program FilesOpenOffice.org 3.1programpython" DocumentConverter.py test.odt test.pdf
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:
"C:Program FilesOpenOffice.org 3.1programsoffice" -accept="socket,port=8100;urp;"
add a comment |
I would try using for Linux
$ /opt/openoffice.org3.1/program/python DocumentConverter.py test.odt test.pdf
For windows:
"C:Program FilesOpenOffice.org 3.1programpython" DocumentConverter.py test.odt test.pdf
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:
"C:Program FilesOpenOffice.org 3.1programsoffice" -accept="socket,port=8100;urp;"
I would try using for Linux
$ /opt/openoffice.org3.1/program/python DocumentConverter.py test.odt test.pdf
For windows:
"C:Program FilesOpenOffice.org 3.1programpython" DocumentConverter.py test.odt test.pdf
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:
"C:Program FilesOpenOffice.org 3.1programsoffice" -accept="socket,port=8100;urp;"
answered Nov 10 '11 at 2:38
Chanaka LasanthaChanaka Lasantha
262
262
add a comment |
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
answered Jun 24 '10 at 13:27
Jeroen RitmeijerJeroen Ritmeijer
3651311
3651311
add a comment |
add a comment |
- Open -> Open Office (3.2 in my case)
- Open Document you want to export
- File->Export as PDF
- Press: Export
- Choose file name
Done and Done
Redundant answer.
– Isaac Rabinovitch
Oct 22 '12 at 0:51
add a comment |
- Open -> Open Office (3.2 in my case)
- Open Document you want to export
- File->Export as PDF
- Press: Export
- Choose file name
Done and Done
Redundant answer.
– Isaac Rabinovitch
Oct 22 '12 at 0:51
add a comment |
- Open -> Open Office (3.2 in my case)
- Open Document you want to export
- File->Export as PDF
- Press: Export
- Choose file name
Done and Done
- Open -> Open Office (3.2 in my case)
- Open Document you want to export
- File->Export as PDF
- Press: Export
- Choose file name
Done and Done
answered Jun 30 '12 at 14:52
JasonJason
11
11
Redundant answer.
– Isaac Rabinovitch
Oct 22 '12 at 0:51
add a comment |
Redundant answer.
– Isaac Rabinovitch
Oct 22 '12 at 0:51
Redundant answer.
– Isaac Rabinovitch
Oct 22 '12 at 0:51
Redundant answer.
– Isaac Rabinovitch
Oct 22 '12 at 0:51
add a comment |
- Install OSE VirtualBox from the software center
- Install Windows inside VirtualBox
- Install MS Office in the virtual Windows
- Install
dopdf
in the virtual Windows - Set
dopdf
as your default printer during the installation. - Open the
*.doc
in the virtual Office and print it to thedopdf
virtual printer. - The
*.pdf
file will appear in theMy Documents
folder of the virtual Windows - Send it as email attachment to wherever you need to send it.
if you use MS Office just install "Save as PDF or XPS" microsoft.com/download/en/details.aspx?id=7
– Remus Rigo
Jul 14 '11 at 16:32
7
This is a lot of trouble and unnecessary licenses for simple conversions that can be done natively in linux
– MaQleod
Aug 5 '11 at 0:48
This is a Rube Goldberg machine. Don't use this. There are so many native ways to do it.
– Rob K
Apr 10 '14 at 15:54
add a comment |
- Install OSE VirtualBox from the software center
- Install Windows inside VirtualBox
- Install MS Office in the virtual Windows
- Install
dopdf
in the virtual Windows - Set
dopdf
as your default printer during the installation. - Open the
*.doc
in the virtual Office and print it to thedopdf
virtual printer. - The
*.pdf
file will appear in theMy Documents
folder of the virtual Windows - Send it as email attachment to wherever you need to send it.
if you use MS Office just install "Save as PDF or XPS" microsoft.com/download/en/details.aspx?id=7
– Remus Rigo
Jul 14 '11 at 16:32
7
This is a lot of trouble and unnecessary licenses for simple conversions that can be done natively in linux
– MaQleod
Aug 5 '11 at 0:48
This is a Rube Goldberg machine. Don't use this. There are so many native ways to do it.
– Rob K
Apr 10 '14 at 15:54
add a comment |
- Install OSE VirtualBox from the software center
- Install Windows inside VirtualBox
- Install MS Office in the virtual Windows
- Install
dopdf
in the virtual Windows - Set
dopdf
as your default printer during the installation. - Open the
*.doc
in the virtual Office and print it to thedopdf
virtual printer. - The
*.pdf
file will appear in theMy Documents
folder of the virtual Windows - Send it as email attachment to wherever you need to send it.
- Install OSE VirtualBox from the software center
- Install Windows inside VirtualBox
- Install MS Office in the virtual Windows
- Install
dopdf
in the virtual Windows - Set
dopdf
as your default printer during the installation. - Open the
*.doc
in the virtual Office and print it to thedopdf
virtual printer. - The
*.pdf
file will appear in theMy Documents
folder of the virtual Windows - Send it as email attachment to wherever you need to send it.
edited Jul 14 '11 at 16:12
slhck
163k47450475
163k47450475
answered Jul 14 '11 at 15:17
einsteineinstein
31
31
if you use MS Office just install "Save as PDF or XPS" microsoft.com/download/en/details.aspx?id=7
– Remus Rigo
Jul 14 '11 at 16:32
7
This is a lot of trouble and unnecessary licenses for simple conversions that can be done natively in linux
– MaQleod
Aug 5 '11 at 0:48
This is a Rube Goldberg machine. Don't use this. There are so many native ways to do it.
– Rob K
Apr 10 '14 at 15:54
add a comment |
if you use MS Office just install "Save as PDF or XPS" microsoft.com/download/en/details.aspx?id=7
– Remus Rigo
Jul 14 '11 at 16:32
7
This is a lot of trouble and unnecessary licenses for simple conversions that can be done natively in linux
– MaQleod
Aug 5 '11 at 0:48
This is a Rube Goldberg machine. Don't use this. There are so many native ways to do it.
– Rob K
Apr 10 '14 at 15:54
if you use MS Office just install "Save as PDF or XPS" microsoft.com/download/en/details.aspx?id=7
– Remus Rigo
Jul 14 '11 at 16:32
if you use MS Office just install "Save as PDF or XPS" microsoft.com/download/en/details.aspx?id=7
– Remus Rigo
Jul 14 '11 at 16:32
7
7
This is a lot of trouble and unnecessary licenses for simple conversions that can be done natively in linux
– MaQleod
Aug 5 '11 at 0:48
This is a lot of trouble and unnecessary licenses for simple conversions that can be done natively in linux
– MaQleod
Aug 5 '11 at 0:48
This is a Rube Goldberg machine. Don't use this. There are so many native ways to do it.
– Rob K
Apr 10 '14 at 15:54
This is a Rube Goldberg machine. Don't use this. There are so many native ways to do it.
– Rob K
Apr 10 '14 at 15:54
add a comment |
possible duplicate of Batch-convert Word-documents to PDF's (free)
– Ƭᴇcʜιᴇ007
Dec 4 '14 at 19:20