Extract PDF Content With Poppler
Pull text, images or page renders out of a PDF from the shell.
Run pdftotext document.pdf - to print the document text to standard output.
01Command
Command
$ pdftotext document.pdf -02What it does
The Poppler utilities cover common PDF needs: pdftotext extracts text, pdfimages exports embedded images, pdftoppm rasterises pages and pdfinfo reports metadata. They compose well with grep and other text tools.
03Risk
!Warning: Text extraction only works when the PDF contains a text layer; scanned documents need OCR first.
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- Debian package: poppler-utilsEvidence: Debian packages poppler-utils, which provides pdftotext, pdfimages, pdftoppm and related PDF tools.
- PopplerEvidence: Debian packages poppler-utils, which provides pdftotext, pdfimages, pdftoppm and related PDF tools.
Last verified: 2026-09-22 · Category: Developer