summaryrefslogtreecommitdiff
path: root/src/generic/evas/pdf/evas_generic_pdf_loader.libreoffice
diff options
context:
space:
mode:
Diffstat (limited to 'src/generic/evas/pdf/evas_generic_pdf_loader.libreoffice')
-rwxr-xr-xsrc/generic/evas/pdf/evas_generic_pdf_loader.libreoffice8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/generic/evas/pdf/evas_generic_pdf_loader.libreoffice b/src/generic/evas/pdf/evas_generic_pdf_loader.libreoffice
new file mode 100755
index 0000000..b36e11e
--- /dev/null
+++ b/src/generic/evas/pdf/evas_generic_pdf_loader.libreoffice
@@ -0,0 +1,8 @@
1#!/bin/sh
2LOBIN=soffice
3if [ -x /usr/lib/libreoffice/program/soffice.bin ]; then
4 LOBIN=/usr/lib/libreoffice/program/soffice.bin
5elif [ -x /usr/lib64/libreoffice/program/soffice.bin ]; then
6 LOBIN=/usr/lib64/libreoffice/program/soffice.bin
7fi
8$LOBIN --headless --convert-to pdf --outdir "$2" "$1"