TIL Poppler's pdftoppm to convert PDF pages into PNG files
May 21, 2025
Today I learned about pdftoppm, a simple CLI tool that can convert each page of a PDF into separate image files.
My use case was to chop up a few big PDF reports to make OCR and data analysis easier, but scanning them a page at a time.
Install
I’m using Homebrew on macOS, but Poppler will also run on Linux and other operating systems.
$ brew install popplerQuick Usage
$ pdftoppm -png -rx 300 -ry 300 input.pdf output-png- save the output files as PNG images-rx 300 -ry 300-> set the output resolution to 300 dpiinput.pdf-> your source file which you want to processoutput-> Your output file prefix which will produceoutput-1.png,output-2.png, …
Originally posted on: https://micro.webology.dev/2025/05/21/til-popplers-pdftoppm-to-convert/
>