I'm trying to use ghostscript to convert pdfs to tiffs in AWS Lambda. Everything works locally and I get good, fast conversions. I was told Lambda has an (old) version of ghostscript built in that is ready to use but I can't seem to be able to call on it.
I tried using the os.system command to call ghostscript directly and also tried using the pip installed version of ghostscript but neither worked.
os.system("gs -q -dBATCH -dNOPAUSE "
"-sDEVICE=tiffg4 -r600 "
"-sOutputFile=" + upload_path + " " + download_path)
I'm getting this following error :
sh: gs: command not found
and I don't understand why or how to get around it.