Pdftotext Installation On A Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS
Maintainer: Debian freedesktop.org maintainers
Email: [email protected] .
Website: https://poppler.freedesktop.org/
Section: utils
Install pdftotext
-
Debian
apt-get install poppler-utilsClick to copy -
Ubuntu
apt-get install poppler-utilsClick to copy -
Alpine OS
apk add popplerClick to copy -
Arch Linux
pacman -S popplerClick to copy -
Kali Linux
apt-get install poppler-utilsClick to copy -
CentOS
yum install poppler-utilsClick to copy -
Fedora
dnf install poppler-utilsClick to copy -
Raspbian
apt-get install poppler-utilsClick to copy -
macOS
brew install popplerClick 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 copyConvert filename.pdf to plain text and save it as filename.txt:pdftotext filename.pdfClick to copyConvert input.pdf to plain text and save it as output.txt:pdftotext input.pdf output.txtClick to copyConvert 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.




