pdf2txt: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On Debian possible default full paths are:

/usr/bin/pdf2txt - from package: python-pdfminer

You may install the required package with command apt-get install {package}
Error in other languages:
pdf2txt: bevel nie gevind nie
pdf2txt: comandă negăsită
pdf2txt: comando não encontrado
pdf2txt: commande introuvable
pdf2txt: command not found
pdf2txt: käsku ei ole
pdf2txt: không tìm thấy lệnh
pdf2txt: komanda nerasta
pdf2txt: Kommando nicht gefunden.
pdf2txt: kommandot finns inte
pdf2txt: komut yok
pdf2txt: nie znaleziono polecenia
pdf2txt: níor aimsíodh an t-ordú
pdf2txt: no se encontró la orden
pdf2txt: no s'ha trobat l'ordre
pdf2txt: opdracht niet gevonden
pdf2txt: parancs nem található
pdf2txt: perintah tidak ditemukan
pdf2txt: príkaz nenájdený
pdf2txt: příkaz nenalezen
pdf2txt: команда не найдена
pdf2txt: командата не е открита
pdf2txt: 命令找不到
pdf2txt: コマンドが見つかりません