Create a pdf preview (for paper page)

,

Here is how I create a nice png paper preview from pdf, with ImageMagick 6.6.2  In a small shell script file

convert -density 300 $1 -geometry 64 output.png
for file in `ls output*.png`; do
  convert $file \( +clone -background none -shadow 90x2+2+2 \) \
  +swap -background none -layers merge +repage s$file
done
montage soutput-* -background none -tile 8 -geometry +0+0 $2
rm output-*
rm soutput*

And here is the result :

Leave a Reply

Your email address will not be published. Required fields are marked *