Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
pdf2png as a simple command, using ghostscript and imagemagick
#!/bin/bash
PDF=$1
PNG=$2
convert -density 300x300 -units pixelsperinch $PDF -background white -alpha background -alpha off $PNG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.