If all this doesn't work, when you try to process DOCX: Sorry, cannot test it on Ubuntu right now. It also works on Debian Jessie 8.0 (using path /usr/lib/libreoffice/program/soffice). This works for me on Mac OS X Yosemite 10.10.5 with LibreOffice v5.1.2.2 (using my specific path for the binary soffice which will be different on Ubuntu anyway.). Add this additional parameter to your command: "-env:UserInstallation=file:///tmp/LibreOffice_Conversion_$" \ It is caused by bug #37531, known since 2011. Next, the command will not work if there is already a LibreOffice GUI instance up and running on your system. It needs to be: -headless -convert-to pdf:writer_pdf_Exportīe sure to follow exactly this capitalization! Then, in most cases the parameters -headless -convert-to pdf are not sufficient. It is usually located in /usr/lib/libreoffice/program/ and very often, a symlink /usr/bin/soffice points to that location. However, there is soffice(.bin) - the binary that can be used to start LibreOffice from the command line. I do not think that there is a binary named libreoffice as one of the other answers suggested. It will also work for MS Word DOCX files (it will work as well as LibreOffice is able to handle the particular ODT), and, in general all file types which LibreOffice can open. You can use this method not only to convert ODT files to PDF. Here are a few more details about the "non-GUI" method.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |