converting to pdf
Posted: 2019-07-19T03:00:13-07:00
Trying to convert png-files to pdf. As soon as I add option "-rotate 90<" convert starts to generate empty pdf-files:
I've tried with and without "+repage", with and without "-page A4", "-page 'A4<'". All the same. Adding "-rotate '90<'" generates empty pdf-files.
Same for any version of convert up to 7.0.8.
All on OS: CentOS 7.6 latest fixes applied.
Code: Select all
/usr/bin/convert "${j}" -verbose -gravity center -rotate 90\< -background white +repage -page A4\< PDF:/home/dwdsat/PDF/job-${C}_$( printf '%03d' "${P}" ).pdf
/usr/bin/convert "${j}" -verbose -gravity center -rotate "90<" -background white +repage -page "A4<" PDF:/home/dwdsat/PDF/job-${C}_$( printf '%03d' "${P}" ).pdf
/usr/bin/convert "${j}" -verbose -gravity center -rotate '90<' -background white +repage -page 'A4<' PDF:/home/dwdsat/PDF/job-${C}_$( printf '%03d' "${P}" ).pdf
Code: Select all
/usr/bin/convert "${j}" -verbose -gravity center -rotate '90<' -background white -page A4 PDF:/home/dwdsat/PDF/job-${C}_$( printf '%03d' "${P}" ).pdf
Code: Select all
# convert -version
Version: ImageMagick 6.7.8-9 2019-01-29 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features: OpenMP
All on OS: CentOS 7.6 latest fixes applied.