This one: http://www.komyokk.co.jp/pdata/tpdf/104U_1.pdf
When you look it in the PDF viewer, it correctly shows page boundary as printed.
But when you render it with imagick, it adds huge margins to the resulting image.
I feel like there's a simple solution I'm overlooking.
The command I'm using is:
Code: Select all
convert -density 600 pdf:"$1" -background white -alpha opaque png48:"${1%.*}.png"
$ convert -version
Version: ImageMagick 6.9.9-11 Q16 x86_64 2017-09-30 http://www.imagemagick.org
Copyright: © 1999-2017 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC OpenMP
Delegates (built-in): autotrace bzlib cairo fftw fontconfig fpx freetype gslib jbig jng jp2 jpeg lcms lzma pangocairo png ps rsvg tiff webp x xml zlib