summaryrefslogtreecommitdiff
path: root/src/generic/evas/pdf/evas_generic_pdf_loader.libreoffice
blob: b36e11e32247e77d0663fa6a6485ad6d3ecefea5 (plain)
1
2
3
4
5
6
7
8
#!/bin/sh
LOBIN=soffice
if [ -x /usr/lib/libreoffice/program/soffice.bin ]; then
  LOBIN=/usr/lib/libreoffice/program/soffice.bin
elif [ -x /usr/lib64/libreoffice/program/soffice.bin ]; then
  LOBIN=/usr/lib64/libreoffice/program/soffice.bin
fi
$LOBIN --headless --convert-to pdf --outdir "$2" "$1"