File: makesimple.sh

package info (click to toggle)
pypdf2 1.23%2Bgit20141008-1%2Bdeb8u1
  • links: PTS
  • area: main
  • in suites: jessie
  • size: 608 kB
  • ctags: 654
  • sloc: python: 3,646; makefile: 26; sh: 17
file content (19 lines) | stat: -rwxr-xr-x 414 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/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