Convert a PDF file to PNG images by ImageMagick/GhostScript.
-
Prepare docker image
# Pull image docker pull docker.pkg.github.com/aazw/pdf-to-pngs-docker/pdf2pngs:latest # OR # Build image # Note: fix build settings in docker-compose.yml before build image docker-compose build
-
Put a PDF file in
workspace
directory -
Run
# Exec docker-compose run -e INPUT_FILENAME=<filename_in_workspace_dir>.pdf imagemagick # e.g. # > ls workspace # doc.pdf # > docker-compose run -e INPUT_FILENAME=doc.pdf imagemagick