No frils CLI command to convert pdf to jpg image(s). Extended the script from: https://golangcode.com/convert-pdf-to-jpg/
- GO 1.17
- imagemagick
# install imagemagick
brew install ghostscript imagemagick
# allow CFLAG to compile main.go
export CGO_CFLAGS_ALLOW='-Xpreprocessor'
go build # will output `pdftojpg` binary
# pass in pdf source, jpg output, number of page
./pdftojpg 2023.3.10.pdf 2023.3.10 440