I have installed the latest version of Ghostscript (9.50) and use it to convert pdf files to version 1.4. It works very well but I have encountered a file that cannot convert. The file is 240kb, without protection, one page, pdf version 1.6. When I start the procedure, an empty 3kb file is created and the web page begins to load indefinitely. My command is:
shell_exec("gswin64 -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dNOPAUSE -dQUIET -dBATCH -dSAFER -sOutputFile=".$srcfile_new." ".$srcfile."");
Is there any other parameter that I can use? Is it possible to display the error type?
Sorry for my english.