Can anyone suggest me a command utility software for Ubuntu to convert all office files to pdf and it must be a free software.
Asked
Active
Viewed 917 times
0
-
1This 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) – Charles Green Sep 07 '21 at 02:54
-
No please read question I mean to convert using command line. – HIMANSHU SINGH Sep 07 '21 at 15:43
1 Answers
8
For true command-line conversion use command below:
libreoffice --headless --convert-to pdf /path/to/original-file.doc
N0rbert
- 97,162
- 34
- 239
- 423
-
-
@HIMANSHUSINGH 2 lines: `cd /path/to/destination`, then as described in this answer. – AaronD Sep 07 '21 at 15:43
-
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. – HIMANSHU SINGH Sep 07 '21 at 15:52