error on importing pdf

QuestionsCategory: PDF Light Viewererror on importing pdf
Anonymous asked 7 years ago
Thank you for your plugin. Thought i give it a try.  I get the following error Ghostscript is undetected by the plugin.

 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-423403RvWWBlWCWMDf%d" "-f/tmp/magick-4234034gFqaDx6Wx0P" "-f/tmp/magick-423403kXt-guESsrSv"': -dname= must be followed by a valid token @ error/pdf.c/InvokePDFDelegate/263' in /home/muslimdo/public_html/wp-content/plugins/pdf-light-viewer/controllers/PdfController.php:377 Stack trace: #0 /home/muslimdo/public_html/wp-content/plugins/pdf-light-viewer/controllers/PdfController.php(377): Imagick->readimage('/home/muslimdo/...') #1 [internal function]: PdfLightViewer_PdfController::save_post(68) #2 /home/muslimdo/public_html/wp-includes/plugin.php(525): call_user_func_array(Array, Array) #3 /home/muslimdo/public_html/wp-includes/post.php(3374): do_action('save_post_pdf_l...', 68, Object(WP_Post), true) #4 /home/muslimdo/publi in /home/muslimdo/public_html/wp-content/plugins/pdf-light-viewer/controllers/PdfController.php on line 377
replied 7 years ago

I also found your topic GhostScript requirement remains crossed out, probably you’ll need to ask your hosting provider about GhostScript support. Unfortunately I do not know any possibility to make the plugin work without GhostScript, because it’s required by ImageMagick library.

1 Answers
support answered 6 years ago
To summarize – for now the only advice for this kind of cases is to upgrade GhostScript library as we mentioned in this thread –
If you still have questions please open the new ticket.