aboutsummaryrefslogtreecommitdiff
path: root/office/multivalent-tool-pdf/wrapper.multivalent-tool-pdf
blob: 826fd162250c7705783901311961f47f3e8f6268 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

USAGE="Usage: $0 <Command> [options] files\nThe <Command> can be one of the following: Compress, Convert, Decrypt, Diff, Embed, Encrypt, Extract, Impose, Info, Markup, Merge, Repair, Split, Stamp, Uncompact, Uncompress, Undo, Validate\nFor possible options see documentations in /usr/doc/multivalent-tool-pdf-@VERSION@/tool-pdf-doc/"
if [ "$#" == "0" ]; then
  echo -e "$USAGE"
  exit 1
fi

CMD="$1"

shift

case $CMD in
  Compress|Convert|Decrypt|Diff|Embed|Encrypt|Extract|Impose|Info|Markup|Merge|Repair|Split|Stamp|Uncompact|Uncompress|Undo|Validate)
    exec java -classpath /usr/share/java/Multivalent20060102.jar tool.pdf.$CMD "$@"
    ;;
  *)
    echo -e "$USAGE"
    exit 1
esac