Categories
Uncategorized

Get the First Page of a PDF as an Image

Easy with image magick:

# get the first page as a PNG
convert -resize 1275x1650 "example.pdf"[0] cover.jpg

# make the smaller version
convert -resize 155x200 cover.jpg