~ubuntu-branches/ubuntu/lucid/xpdf/lucid

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# simple CDE action for xpdf
# written by Roland.Mainz@informatik.med.uni-giessen.de
#
# To use, copy this file into $HOME/.dt/types
#
# NOTE: this overrides the actions AcroRead and AcroReadPrint 
# defined in /usr/dt/appconfig/types/C/solaris.dt

ACTION AcroRead
{
        TYPE            COMMAND
        WINDOW_TYPE     NO_STDIO
        EXEC_STRING     xpdf "%(File)Arg_1%"
}

# NOTE: Add a '-level1' switch to pdftops if your printer does not
#       support Level 2 Postscript.
ACTION AcroReadPrint
{
        TYPE            COMMAND
        WINDOW_TYPE     NO_STDIO
        EXEC_STRING     ksh -c ' \
                MYFILE="%(File)Arg_1%" ; \
                pdftops "${MYFILE}" /dev/stdout | \
                dtlp -w -b "${MYFILE}"'
}

# EOF.