Fatal error: Uncaught exception 'ImagickException' with message 'PDFDelegateFailed `[ghostscript library]

QuestionsFatal error: Uncaught exception 'ImagickException' with message 'PDFDelegateFailed `[ghostscript library]
Carlos asked 8 years ago
When I try to import a PDF the browser displays this error message:

Fatal error: Uncaught exception ‘ImagickException’ with message ‘PDFDelegateFailed `[ghostscript library] -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 “-sDEVICE=pngalpha” -dTextAlphaBits=4 -dGraphicsAlphaBits=4 “-r72x72” “-sOutputFile=/tmp/magick-764037H0xTJyGXFLIp%d” “-f/tmp/magick-764037haM3uiVH6LCR” “-f/tmp/magick-764037EXsbcDqSD0Ej”‘: -dname= must be followed by a valid token @ error/pdf.c/InvokePDFDelegate/263’ in /home/teahserver/public_html/shopperfischel.com/wp-content/plugins/pdf-light-viewer/controllers/PdfController.php:452 Stack trace: #0 /home/teahserver/public_html/shopperfischel.com/wp-content/plugins/pdf-light-viewer/controllers/PdfController.php(452): Imagick->readimage(‘/home/teahserve…’) #1 [internal function]: PdfLightViewer_PdfController::save_post(43) #2 /home/teahserver/public_html/shopperfischel.com/wp-includes/plugin.php(525): call_user_func_array(Array, Array) #3 /home/teahserver/public_html/shopperfischel.com/wp-includes/post.php(3518) in /home/server/public_html/domain.com/wp-content/plugins/pdf-light-viewer/controllers/PdfController.php on line 452

1 Answers
support answered 8 years ago
Hello Carlos,
Please let me know the versions of ImageMagick and Ghostscript libraries which you\’re using. You can find version numbers on the settings page /wp-admin/options-general.php?page=pdf-light-viewer
In some cases this issue could appear when users try to convert new PDF with old versions of ImageMagick and Ghostscript libraries. For test you can for example try to import one of the Google’s PDFs https://abc.xyz/investor/pdf/2015Q1_google_earnings_slides.pdf – it usually could be imported without errors. If so, I believe the issue in compatibility with the new PDF format changes.