1fd3624
1 2 3 4 5 6 7 8 9 10 11 12 13
#!/bin/env bash if [ -z "$1" ]; then echo please provide a file name exit 1 fi echo "scanning document" hp-scan --adf -s pdf --size a4 -o "${1}.pdf" echo "shrinking pdf" shrink_pdf "${1}.pdf" mv "small_${1}.pdf" "${1}.pdf"