Version: ImageMagick 6.9.9-10 Q16 x64 2017-08-27
Code with pdf to pdf used:
Code: Select all
convert -density 288 -quality 100 sample.pdf[0] -rotate 45 -alpha remove sample-rot45.pdf
Example with image (same as the pdf):
Original:

To png rotated:
Code: Select all
convert.exe cat128.png -rotate 45 cat128rot45.png

To pdf rotated:
Code: Select all
convert.exe cat128.png -rotate 45 cat128rot45.pdf

To png from rotated pdf:
Code: Select all
convert.exe cat128rot45.pdf cat128rot45frompdf.png
