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

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