1 2 3 |
[root@xv1a28 ~]# libreoffice --convert-to pdf test-file.docx --headless convert /root/test-file.docx -> /root/test-file.pdf using writer_pdf_Export [root@xv1a28 ~]# |
The needed packages are:
yum install \
java-1.8.0-openjdk \
libreoffice-headless \
libreoffice-writer \
http://ftp.tu-chemnitz.de/pub/linux/dag/redhat/el6/en/x86_64/rpmforge/RPMS/unoconv-0.5-1.el6.rf.noarch.rpm