# use ImageMagick convert # the order is important. the density argument applies to input.pdf and resize and rotate to output.pdf convert -density 90 input.pdf -rotate 0.5 -attenuate 0.2 +noise Multiplicative -colorspace Gray output.pdf