ImageMagick convert

convert -density 300 input.pdf output.png

The key parameter here is -density` which allows us to specify a higher resolution than