Pdftotext Installation On A Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS

Pdftotext Installation On A Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS

pdftotext

Convert PDF files to plain text format.

Maintainer: Debian freedesktop.org maintainers



Section: utils

Install pdftotext

  • Debian apt-get install poppler-utils Click to copy
  • Ubuntu apt-get install poppler-utils Click to copy
  • Alpine OS apk add poppler Click to copy
  • Arch Linux pacman -S poppler Click to copy
  • Kali Linux apt-get install poppler-utils Click to copy
  • CentOS yum install poppler-utils Click to copy
  • Fedora dnf install poppler-utils Click to copy
  • Raspbian apt-get install poppler-utils Click to copy
  • macOS brew install poppler Click to copy

Convert PDF files to plain text format.

How to use pdftotext?

Below are few example commands for pdftotext that you can use in the terminal.

Convert filename.pdf to plain text and print it to standard output:
pdftotext filename.pdf -Click to copy
Convert filename.pdf to plain text and save it as filename.txt:
pdftotext filename.pdfClick to copy
Convert input.pdf to plain text and save it as output.txt:
pdftotext input.pdf output.txtClick to copy
Convert pages 2, 3 and 4 of input.pdf to plain text and save them as output.txt:
pdftotext -f 2 -l 4 input.pdf output.txtClick to copy
Installation of latest pdftotext command is available for Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian and macOS. You can copy the command for your OS from above and paste it into your terminal. Once you run the command it will download the 2026 latest package from the repository and install it in your computer/server.