Skip to content
Browse files

fix cropped pdf generation

  • Loading branch information...
1 parent 1d43607 commit 419241674456c47e8d188c0634f0825266c3593c @timfel committed Aug 20, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 bin/generate_pdf_manual.sh
View
3 bin/generate_pdf_manual.sh
@@ -1,11 +1,12 @@
sleep 10
/usr/bin/import -window root "screen_0.jpg" -crop "$2"
+rm "screen_0-1.jpg" "screen_0-2.jpg" "screen_0-3.jpg"
for i in `seq -w 1 $1`; do
notify-send -t 1 Press Next
sleep 8
/usr/bin/import -window root "screen_${i}.jpg" -crop "$2"
+ rm "screen_${i}-1.jpg" "screen_${i}-2.jpg" "screen_${i}-3.jpg"
done
-rm "screen_*-1.jpg"
convert "screen_*.jpg" presentation_to_pdf.pdf
rm screen_*.jpg

0 comments on commit 4192416

Please sign in to comment.
Something went wrong with that request. Please try again.