Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
7
rated 0 times [  7] [ 0]  / answers: 1 / hits: 7694  / 2 Years ago, mon, december 20, 2021, 1:03:18

In my Ubuntu Server 12.04, I am converting all .docx files under a directory to .pdf files with this command:



libreoffice -headless -convert-to pdf:writer_pdf_Export *.docx


Can I merge multiple documents and convert them to single .pdf file like this?



For example:



file1.docx
file2.docx
file3.docx


And the output should be one .pdf file like merged_result.pdf. I have to do it from Terminal because I'm using it in PHP.



Furthermore, can I add picture like front image? Any kind of source I can get the Terminal functions for LibreOffice is appreciated, too; I was unable to find what I'm looking for.



Thanks in advance.


More From » server

 Answers
1

Maybe you could use an additional tool, like pdftk for instance, to do the merging part. You could then chain the two commands; the first one with Libreoffice, the second one with pdftk.


[#37335] Wednesday, December 22, 2021, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
inciplyies

Total Points: 10
Total Questions: 114
Total Answers: 93

Location: French Polynesia
Member since Sun, Dec 20, 2020
3 Years ago
;