Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- V1=800
- V2=750
- H1=600
- H2=550
- mkdir ./tune &>/dev/null
- rm -r ./tune/* &>/dev/null
- for (( c=$V1; c>=$V2; c-- ))
- do
- convert pattern.png -crop 100x$c+0+0 -font courier -fill black -pointsize 20 -annotate +30+400 $c +repage -strip -type GrayScale -depth 4 -compress Zip -quality 100 ./tune/V$c.pdf
- done
- for (( c=$H1; c>=$H2; c-- ))
- do
- convert pattern.png -crop $(($c))x100+0+0 -font courier -fill black -pointsize 20 -annotate +280+50 $c +repage -strip -type GrayScale -depth 4 -compress Zip -quality 100 ./tune/H$c.pdf
- done
- pdftk ./firstpage.pdf ./tune/*.pdf ./lastpage.pdf cat output ./tune.pdf
- rm -r ./tune/* &>/dev/null
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement