Code: Select all
convert \
\( -density 144 my.pdf -gravity north -crop x200+0+0 +repage -colorspace gray -alpha remove \) \
\( -density 144 my.pdf -gravity south -crop x200+0+0 +repage -colorspace gray -alpha remove \) -append \
output.png
Sample of what works but I have to call for each page, but I want a simple line like above...
Code: Select all
convert \
\( -density 144 my.pdf[0] -gravity north -crop x200+0+0 +repage -colorspace gray -alpha remove \) \
\( -density 144 my.pdf[0] -gravity south -crop x200+0+0 +repage -colorspace gray -alpha remove \) \
\( -density 144 my.pdf[1] -gravity north -crop x200+0+0 +repage -colorspace gray -alpha remove \) \
\( -density 144 my.pdf[1] -gravity south -crop x200+0+0 +repage -colorspace gray -alpha remove \) -append \
output.png