1 #!/bin/sh 2 # requires zlib-flate which is part of the qpdf package: pkg_add qpdf 3 4 if [ "$1" != "" ]; then 5 zlib-flate -uncompress < "$1" 6 else 7 zlib-flate -uncompress 8 fi