#! /bin/sh
#
# $Id: APPLICATION.PDF.filter.in,v 1.1 2003/05/27 14:09:03 mrsam Exp $
#
# Copyright 2003, Double Precision Inc.
#
# See COPYING for distribution information.
#

PHASE="$1"
MIMETYPE="$2"     # If you need it

if test "$PHASE" = "check"
then
    if test "$DISPLAY" = ""
	then
	exit 1
    fi

    if test -x /usr/bin/xpdf
	then
	exit 0
    fi
    exit 1
fi

if test "$PHASE" = "filter"
    then
	FILENAME="$3"

	( /usr/bin/xpdf "$FILENAME" & ) >/dev/null 2>&1
	exit 0
fi
