Score:0

How to convert office file like .doc .ppt and other on Ubuntu

wf flag

Can anyone suggest me a command utility software for Ubuntu to convert all office files to pdf and it must be a free software.

Charles Green avatar
cn flag
This can be done using LibreOffice - please see [https://stackoverflow.com/questions/30349542/command-libreoffice-headless-convert-to-pdf-test-docx-outdir-pdf-is-not](https://stackoverflow.com/questions/30349542/command-libreoffice-headless-convert-to-pdf-test-docx-outdir-pdf-is-not)
HIMANSHU SINGH avatar
wf flag
No please read question I mean to convert using command line.
Score:8
zw flag

For true command-line conversion use command below:

libreoffice --headless --convert-to pdf /path/to/original-file.doc
HIMANSHU SINGH avatar
wf flag
How to specific the save directly??
AaronD avatar
in flag
@HIMANSHUSINGH 2 lines: `cd /path/to/destination`, then as described in this answer.
HIMANSHU SINGH avatar
wf flag
Not possible.. Because I using php script to excute this and to use the cd command we need to make 2 commands excute with same terminal and with same data of terminal.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.