• Resolved alainmelsens

    (@alainmelsens)


    Hello,
    I have tested this PDF Light Viewer Plugin on Windows IIS platform and it seems that it is not working.
    I have installed ImageMagick, ghostscript and also the ImageMagick PHP extension. I use the latest PHP version 7.4.20.
    In the configuration of the PDF Light Viewer Plugin, the ImageMagick is well detected.
    But maybe it’s a problem with the ImageMagick and ghostscript together. But I don’t know what the reason will be?
    When I download a PDF file, then the preview is not builded. I get the error message:

    pdf-light-viewer] shortcode cannot be rendered due to the error: No converted pages found.
    If PDF has been already converted, then probably there were some errors during the import. Please check plugin error log on the settings page and your site error log for errors.

    Is there anyone who can give me some tips or hints? Or the reason why it is not working?
    Thanks in advance.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Mugur

    (@mugurbaloiu)

    The problem is the same on the Apache servers.
    I have the PDF Light Viewer Serverless Addon and still not working.
    The “Import PDF” button is not doing anything on press.

    @teamlead: Please revise the plugins for WordPress version 5.7.2

    @alainmelsens please tell me if your Import PDF button is working and if you see any activity of conversion after that.

    Regards,

    Thread Starter alainmelsens

    (@alainmelsens)

    Hello Mugur,
    Indeed, the “Import PDF” button let me to import a PDF document, but nothing else is happening. No conversions at all, no further actions.
    I found already how to get ImageMagick supporting the PDF format, but these is not the reason why the conversion is not working yet.
    Regards.

    • This reply was modified 3 years, 5 months ago by alainmelsens.
    • This reply was modified 3 years, 5 months ago by alainmelsens.
    Thread Starter alainmelsens

    (@alainmelsens)

    Hello,
    I have searched further and found that the “PDF Light Viewer Plugin” has now also discovered GhostScript. It was sufficient to rename gswin64c.exe to gs.exe in the GhostScript bin folder.
    So, now all system requirements for the “PDF Light Viewer Plugin” are fully respected and set.
    But it doesn’t work yet! ??
    There is a Plugin log file with the following data on it:

    ======================
    11-06-2021 16-38-35
     ---------------------- 
    Import exception with getting pages number: PDFDelegateFailed 

    Het systeem kan het opgegeven bestand niet vinden.
    ‘ @ error/pdf.c/ReadPDFImage/794 >>> ImagickException Object
    (
    [message:protected] => PDFDelegateFailed `Het systeem kan het opgegeven bestand niet vinden.
    ‘ @ error/pdf.c/ReadPDFImage/794
    [string:Exception:private] =>
    [code:protected] => 415
    [file:protected] => C:\XXXXXX\wp-content\plugins\pdf-light-viewer\src\controllers\PdfController.php
    [line:protected] => 842
    [trace:Exception:private] => Array
    (
    [0] => Array
    (
    [file] => C:\XXXXXX\wp-content\plugins\pdf-light-viewer\src\controllers\PdfController.php
    [line] => 842
    [function] => readimage
    [class] => Imagick
    [type] => ->
    )

    [1] => Array
    (
    [file] => C:\XXXXXX\wp-content\plugins\pdf-light-viewer\src\controllers\PdfController.php
    [line] => 700
    [function] => getPDFPagesNumber
    [class] => PdfLightViewer_PdfController
    [type] => ::
    )

    [2] => Array
    (
    [file] => C:\XXXXXX\wp-includes\class-wp-hook.php
    [line] => 294
    [function] => save_post
    [class] => PdfLightViewer_PdfController
    [type] => ::
    )

    [3] => Array
    (
    [file] => C:\XXXXXX\wp-includes\class-wp-hook.php
    [line] => 316
    [function] => apply_filters
    [class] => WP_Hook
    [type] => ->
    )

    [4] => Array
    (
    [file] => C:\XXXXXX\wp-includes\plugin.php
    [line] => 484
    [function] => do_action
    [class] => WP_Hook
    [type] => ->
    )

    [5] => Array
    (
    [file] => C:\Sites\XXXXXX\wp-includes\post.php
    [line] => 4373
    [function] => do_action
    )

    [6] => Array
    (
    [file] => C:\XXXXXX\wp-includes\post.php
    [line] => 4486
    [function] => wp_insert_post
    )

    [7] => Array
    (
    [file] => C:\XXXXXX\wp-admin\includes\post.php
    [line] => 419
    [function] => wp_update_post
    )

    [8] => Array
    (
    [file] => C:\XXXXXX\wp-admin\post.php
    [line] => 227
    [function] => edit_post
    )

    )

    [previous:Exception:private] =>
    )`

    ——————————————————————–

    I have, for security reasons replaced some path details with XXXX.
    Otherwise the rest is original content.

    I hope with this extra information that we are nearby the solution. I could be something to do with read/write permissions on some or more Windows folders. But with and what need I to change?

    Thanks in advance for any hints or tips.
    Regards.

    • This reply was modified 3 years, 5 months ago by alainmelsens.
    Thread Starter alainmelsens

    (@alainmelsens)

    Hello again,
    I have installed an other great plugn “GS Only PDF Preview”.
    This is an old plugin. More than 4 years since the latest update and it’s working. The PDF file thumbnails are working well now. This old “GS Only PDF Preview” plugin is also working with the Imagick PHP extension and installed GhostScript.
    So…. Why it’s not working with this “PDF Light Viewer Plugin”???
    Is there anyone that have got some same issues?
    Thanks in advance.
    Regards.

    Plugin Author antongorodezkiy

    (@antongorodezkiy)

    Hello @mugurbaloiu
    In case of the Serverless Addon the issue has been resolved in the version 0.0.7

    Hello @alainmelsens

    Did you have a chance to check the following article –
    https://support.wp.teamlead.pw/q/exception-imagickexception-with-message-pdfdelegatefailed/ ?

    Does your PDF file name contains diacritics or special characters? Could you please try to rename it to 1.pdf and then try to import?

    Let’s try to import other PDF and see whether you will have the same issue, for example – https://pdf-light-viewer.wp.teamlead.pw/wp-content/uploads/sites/5/2015/12/2015Q2_google_earnings_slides.pdf

    If that would not help, share with me the file you’re trying to import so I could test it on my side.

    Thread Starter alainmelsens

    (@alainmelsens)

    Hello,
    Thanks for your reply.
    I have already read and tested everything (I guess….).
    I have just downloaded your example PDF file from Google and tried loading it again. When loading, nothing happens. No pages are converted at all. Nothing happens; the previeuw and shortcode do show the familiar error message:

    [pdf-light-viewer] shortcode cannot be rendered due to the error: No converted pages found.
    If PDF has been already converted, then probably there were some errors during the import. Please check plugin error log on the settings page and your site error log for errors.

    I really don’t know what the causes are any more.
    Everything seems to be installed and configured properly.
    But Maybe I forgot something…?
    Thanks for any hint or tips.
    Regards.

    Plugin Author antongorodezkiy

    (@antongorodezkiy)

    Hello @alainmelsens

    I answered you by email.

    Thread Starter alainmelsens

    (@alainmelsens)

    Hello @antongorodezkiy
    Thanks to answering me by email.
    I have replied on that email.
    I will try some more tests and see what’s happening.
    I will keep you informed by email.
    Thanks for your support.
    Regards.

    Thread Starter alainmelsens

    (@alainmelsens)

    Hello,
    In principle, the problems identified were not really solved but a kind of alternative was proposed. Of course that works, but that is why I do not know the reasons why it did not work.
    But we can stay busy like this.
    I then consider this problem solved.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Not working on Windows IIS’ is closed to new replies.