ps2txt: 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/ps2txt - from package: ghostscript

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