poppler (pdftotext / pdftoppm)
CLIPDF text extraction, page info, and PDF → PNG rendering. The reliable way to read PDFs from a shell.
Extract text from a PDF to stdout (keep layout)Verified macOS · Linux
pdftotext -layout input.pdf -+5 more matching recipesconversion6 recipes · 6 verified
Chrome headless
CLIScreenshot or print any web page (local file or URL) to PNG/PDF with the browser you already have.
Print a page to PDF (macOS, Google Chrome)Verified macOS
"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" --headless=new --disable-gpu --no-pdf-header-footer --print-to-pdf=out.pdf "file://$PWD/page.html"+1 more matching recipedev-tools4 recipes · 4 verified
pandoc
CLIUniversal document converter between dozens of formats.
Convert Markdown to PDF without LaTeX (macOS, via Chrome)Verified macOS
pandoc input.md -s -o tmp.html && "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" --headless=new --disable-gpu --no-pdf-header-footer --print-to-pdf=output.pdf "file://$PWD/tmp.html"+2 more matching recipesconversion7 recipes · 6 verified
imagemagick
CLICreate, edit, and convert images from the command line.
Convert PDF to PNG (ImageMagick 7, macOS)Verified macOS
magick -density 150 input.pdf output.pngmedia11 recipes · 11 verified