#!/bin/sh

if [ $# -lt 3 ]; then
	 echo "Not enough arguments!"
	 echo "Usage: $0 URL DocName MaxDepth"
else
	 /usr/local/bin/plucker-build \
		  --bpp=4\
		  --maxwidth=150\
		  --maxheight=250\
		  --compression=zlib\
		  --maxdepth=$3\
		  --beamable\
        --no-backup\
        --not-launchable\
        --verbosity=2\
		  --category=Reading\
		  --doc-name=$2\
        --doc-file=$2\
		  $1
fi

