Extract PDF Content With Poppler

Pull text, images or page renders out of a PDF from the shell.

LinuxtextconvertpdfLow risk
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

RiskLow risk
Requirementssudo apt install poppler-utils
!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-utils
    Debian · vendor-doc · 2026-09-20
    Evidence: Debian packages poppler-utils, which provides pdftotext, pdfimages, pdftoppm and related PDF tools.
  • Poppler
    Official project · vendor-doc · 2026-09-20
    Evidence: Debian packages poppler-utils, which provides pdftotext, pdfimages, pdftoppm and related PDF tools.

Last verified: 2026-09-22 · Category: Developer

06Related solutions