How to rotate pdf and undo rotating? Gives unexpected results.

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
User avatar
magick
Site Admin
Posts: 10831
Joined: 2003-05-31T11:32:55-07:00

Re: How to rotate pdf and undo rotating? Gives unexpected results.

Post by magick » 2018-09-15T07:30:09-07:00

Crosses.pdf includes a profile that is incompatible with the PDF output type. The input is sRGB and the output is gray alpha. You have two choices, strip the profile or force sRGB output with +profile sRGB or -type sRGB. Place either just before the output image filename on the command-line. Why does ImageMagick not do that automatically? Because the "user is king." ImageMagick assumes the user knows what they are doing and just follows the user instructions as defined by the command-line arguments.

jauson
Posts: 31
Joined: 2015-05-04T21:05:35-07:00
Authentication code: 6789

Re: How to rotate pdf and undo rotating? Gives unexpected results.

Post by jauson » 2018-09-15T21:27:21-07:00

Like this?

Code: Select all

convert -verbose -density 288 -colorspace sRGB crosses.pdf  -alpha remove +profile sRGB out-2-x.pdf
convert -verbose -density 288 -colorspace sRGB out-2-x.pdf  -alpha remove +profile sRGB out-2-x-2nd-save.pdf

It's still producing the same results.

Post Reply