magick -density 150 input.pdf output.png

Category: Media & Conversion

magick -density 150 input.pdf output.png

Render a PDF page to an image

Renders the PDF's first page at 150 dpi to a PNG. -density must come before the input filename because it controls how the PDF is rasterized. Use -density 300 for print quality, and add -resize to shrink the output.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.