#!/bin/sh #---------------------------------------------------------------------------- # /var/spool/hylafax/mimeconverters/application/pdf - pdf2ps converter # # Creation: 2006-12-25 jed # Last Update: $Id$ # # Copyright (c) 2007-@@YEAR@@ Holger Bruenjes, holgerbruenjes(at)gmx(dot)net # # Comment: Converts PDF attachments to PS (mime type: application/pdf) # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version.. #---------------------------------------------------------------------------- mime_path=/var/spool/hylafax/mimeconverters if [ $# -gt 0 ] then if [ -f /usr/bin/pdf2ps ] then /usr/bin/pdf2ps $1 - else # error ${mime_path}/no-converter-mail "application/pdf" "/usr/bin/pdf2ps" fi else # show usage echo "Usage: $0 filename" fi