debian-pypdf4/Sample_Code/makesimple.sh

19 lines
414 B
Bash
Executable File
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/sh
n=1
for np in 5 11 17; do
p=1
f=simple$n.pdf
while expr $p \<= $np > /dev/null; do
if [ $p != 1 ]; then
echo " \c"
fi
echo "$f page $p of $np"
echo ""
echo "an incredible, yet simple example"
echo "Created with Sample_Code/makesimple.sh"
p=$(expr $p + 1)
done | enscript --no-header -o - |ps2pdf - $f
echo $f
n=$(expr $n + 1)
done