Skip to content

vtno/pdf2jpg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PDFTOJPG

No frils CLI command to convert pdf to jpg image(s). Extended the script from: https://golangcode.com/convert-pdf-to-jpg/

Prerequisite

  • GO 1.17
  • imagemagick

Build

# install imagemagick
brew install ghostscript imagemagick
# allow CFLAG to compile main.go
export CGO_CFLAGS_ALLOW='-Xpreprocessor'

go build # will output `pdftojpg` binary

Usage

# pass in pdf source, jpg output, number of page
./pdftojpg 2023.3.10.pdf 2023.3.10 440

About

converting pdf2jpg with imagemagick

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages