• Resolved mcrockett

    (@mcrockett)


    Hey Menno,
    Thank you for creating Foyer. It is helping me revolutionize the way I do digital signage in my organization.
    I am having a problem with PDFs. When I go to create a slide, I choose PDF. I upload my PDF, and I get a broken thumbnail image. If I publish, I get the following:

    Processing PDF pages failed.

    Make sure you are on WordPress 4.7 or higher, and your webhosting has Imagick and Ghostscript installed.
    Error message: No editor could be selected.

    I am using WordPress 4.9.8. I have installed ImageMagick on my own Windows 2016 server with IIS. I can successfully use it with PHP. I have also installed Ghostscript. What am I missing?

    I appreciate any help you can give me.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter mcrockett

    (@mcrockett)

    So, I built a new server, with different versions of PHP, and everything. I now get the following:

    Processing PDF pages failed.

    Make sure you are on WordPress 4.7 or higher, and your webhosting has Imagick and Ghostscript installed.
    Error message: PDFDelegateFailed `Error: /undefinedfilename in (C:/Windows/TEMP/magick-1120GVlro19oJn2c) Operand stack: Execution stack: %interp_exit .runexec2 –nostringval– –nostringval– –nostringval– 2 %stopped_push –nostringval– –nostringval– –nostringval– false 1 %stopped_push Dictionary stack: –dict:973/1684(ro)(G)– –dict:0/20(G)– –dict:78/200(L)– Current allocation mode is local Last OS error: Permission denied GPL Ghostscript 9.25: Unrecoverable error, exit code 1 ‘ @ error/pdf.c/ReadPDFImage/801

    So this is different. Any help?

    Thread Starter mcrockett

    (@mcrockett)

    I got it resolved on my own. It was a folder permission issue. I added the correct permission to the folder mentioned in my last post, and it worked.

    Menno,
    Thanks again for this awesome plugin.

    Plugin Author Menno Luitjes

    (@mennolui)

    Hi there, sorry to hear the PDF feature is not working for you.

    I rely on core WordPress functions to generate images from PDF pages. Unfortunately this does not work on all server setups, mostly because Imagick (the API to ImageMagick) or Ghostscript are missing. If WordPress can’t seem to handle converting the PDF, I display the error message you encountered.

    I don’t have a Windows/IIS setup, so could you troubleshoot this for me? Could you try and upload a PDF in the WordPress Media library? After uploading and then clicking on the attachment icon, do you see the first page of your PDF with the words ‘Document Preview’ below the image, or do you see a generic document icon?

    Menno

    Plugin Author Menno Luitjes

    (@mennolui)

    Ha, I still had your initial comment open on my screen when replying ?? good to hear it’s working though!!

    Thread Starter mcrockett

    (@mcrockett)

    Yes, and I appreciate you taking the time to respond.

    So a little background: I’m using Windows Server 2016 with IIS. My problem was that I was using PHP 7.2, the newest version, and it seems that there have been no imagick dependencies created for 7.2. To be certain, I started over and rebuilt my server with PHP 7.1. I installed ImageMagick, implemented the imagick PHP extension and dependencies for 7.1, installed GhostScript, and things work now. When I upload my PDF, I still get a broken jpeg symbol next to the upload button. But when I click publish, it takes some time, but the end result is a slide with all of the PDF pages turned into digital signage slides.

    I used the following article to set this up on Windows IIS:
    https://www.58bits.com/blog/2018/04/23/installing-imagemagick-use-php-and-iis-windows-server-2012r2-and-windows-10
    For anyone doing this on their own, follow these instructions as closely as possible. I even used the versions that they mentioned, just to be safe. I also used x86 everything, but GhostScript x64, as they also mentioned.

    If I encounter any more gotchas on this, I’ll let you know.

    Plugin Author Menno Luitjes

    (@mennolui)

    Thanks for the detailed setup! Might help others running WordPress on IIS to get PDF processing working.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘PDF’ is closed to new replies.