2024-10/cgi-bin/doc2pdf.sh
2024-10-17 08:49:16 +02:00

11 lines
214 B
Bash
Executable file

#!/bin/bash
PATH=/usr/sbin:/bin:/usr/bin:/sbin:/usr/X11R6/bin
HOME=/tmp
echo >> /tmp/doc2pdf.log $PATH_TRANSLATED
echo -e "Content-Type: application/pdf\n"
/usr/bin/antiword -p a4 $PATH_TRANSLATED | ps2pdf - -