converting to pdf

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
Posts: 2
Joined: 2019-07-19T02:41:18-07:00
Authentication code: 1152

converting to pdf

Post by tps800 » 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:

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
I've tried with and without "+repage", with and without "-page A4", "-page 'A4<'". All the same. Adding "-rotate '90<'" generates empty pdf-files.

Code: Select all

# convert -version
Version: ImageMagick 6.7.8-9 2019-01-29 Q16
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features: OpenMP
Same for any version of convert up to 7.0.8.
All on OS: CentOS 7.6 latest fixes applied.

User avatar
Posts: 25757
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: converting to pdf

Post by fmw42 » 2019-07-19T08:24:22-07:00

Did convert -version list any Delegates? If not, then you need to install from binary or install all the needed delegates before installing from source.

Try these commands:

convert logo: -rotate "90<" logo1.pdf
convert logo: -rotate "90>" logo2.pdf

Do they work.

They work fine for me on IM Q16 Mac OSX

Post Reply