slackbuilds_ponce/office/multivalent-tool-pdf/wrapper.multivalent-tool-pdf
Alexander Verbovetsky aba79c277e office/multivalent-tool-pdf: Added (PDF tools).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2016-11-02 22:53:12 +07:00

20 lines
699 B
Bash

#!/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