What is in Site administration > Server > System paths : Path to Ghostscript? It is ticked green by Moodle?
If you are not making progress pl.provide the information as described in Before you post.. Read this.. making it possible for somebody to help investigating.