Pydio integration on SME Server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

6 lines
269 B

#!/bin/bash
RES=$(/usr/bin/pdftotext -eol unix -layout -nopgbrk "$1" -)
if [ -z "$RES" ]; then
RES=$(/usr/bin/gs -q -P- -dNODISPLAY -dSAFER -dDELAYBIND -dWRITESYSTEMDICT -dSIMPLE -f ps2ascii.ps "$1" -c quit 2>/dev/null | iconv -f ISO8859-1 -t UTF-8)
fi
echo "$RES"