]> git.ipfire.org Git - thirdparty/cups.git/blob - tools/pdftops-darwin.sh
07d3224c5ee07054ce08c8f55c7c4ce2f45875a1
[thirdparty/cups.git] / tools / pdftops-darwin.sh
1 #!/bin/sh
2 #
3 # Script to simulate Xpdf/Poppler's pdftops program.
4 #
5
6 options=""
7
8 while test $# -gt 0; do
9 option="$1"
10 shift
11
12 case "$option" in
13 -expand)
14 options="$options fit-to-page"
15 ;;
16 -h)
17 echo "Usage: pdftops [options] filename"
18 echo "Options:"
19 echo " -expand"
20 echo " -h"
21 echo " -level1"
22 echo " -level2"
23 echo " -level3"
24 echo " -noembtt"
25 echo " -origpagesizes"
26 echo " -paperw width-points"
27 echo " -paperh length-points"
28 echo ""
29 echo "THIS IS A COMPATIBILITY WRAPPER"
30 exit 0
31 ;;
32 -paperw | -paperh)
33 # Ignore width/length in points
34 shift
35 ;;
36 -*)
37 # Ignore everything else
38 ;;
39 *)
40 /usr/libexec/cups/filter/cgpdftops job user title 1 "$options" "$option"
41 exit $?
42 ;;
43 esac
44 done