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

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