• Resolved digiscrap

    (@digiscrap)


    Hello,

    I’m testing the PDF upload but after upload of the pdf the booklet is empty (filled with white pages) and there are 10 white/empty jpg images added to the media gallery.
    Could this be an server issue?
    I have “Limit converted PDF pages to 10” enabled. When uploading an pdf with one page I see the same.
    And:
    Ghostscript status Installed
    Imagemagick status Installed

    Thanks,
    Vincent

    https://www.ads-software.com/plugins/wp-booklet/

Viewing 15 replies - 16 through 30 (of 32 total)
  • Plugin Author binarystash01

    (@binarystash01)

    Ghostscript and Imagemagick seem to be configured correctly. However, there are errors which can only be detected when using the command line.

    If it isn’t an inconvenience for you, kindly ask your web administrator to run test.php via the command line to see all the errors. FTP access is insufficient.

    I would be glad to further assist you in resolving this issue.

    Thanks!

    Thread Starter digiscrap

    (@digiscrap)

    I can run it in the VPS console myself but I’m not sure how to do this.

    I see in the last version of WP Booklet in the settings:

    Can your server convert PDF files? No. Please contact your server administrator. The information below may help in troubleshooting the problem.

    Do you know why it can’t and what I need to change to let it work?

    Plugin Author binarystash01

    (@binarystash01)

    Once you have launched your VPS console, type:

    cd /home/digiscrap/domains/fotoservice.digiscrap.nl/public_html/imagemagick

    then run:

    php test.php

    All errors should be displayed.

    Thread Starter digiscrap

    (@digiscrap)

    Did it and the VPS is still up… hehe

    I think I found something ??

    convert: unable to open image`MiB’: No such file or directory.
    convert: invalid argument for option `64MiB’: -limit.

    array(0){ }                                                                      
    Plugin Author binarystash01

    (@binarystash01)

    I’ve removed the limit from the script. Could you run it again? Thanks! ??

    Thread Starter digiscrap

    (@digiscrap)

    I can’t view the first lines of the output but this looks OK….. but…. still no images are created:

    [9]=> string(125) “/home/digiscrap/domains/fotoservice.digiscrap.nl/public_html/imagemagick/pdf.pdf[4] PDF 612×792 612×792+0+0 DirectClass 6.9mb”

    [10]=> string(209) “/home/digiscrap/domains/fotoservice.digiscrap.nl/public_html/imagemagick/pdf.pdf=>/home/digiscrap/domains/fotoservice.digiscrap.nl/public_html/im agemagick/pdf-0.jpg[0] PDF 612×792 612×792+0+0 DirectClass 6.9mb”

    [11]=> string(209) “/home/digiscrap/domains/fotoservice.digiscrap.nl/public_html/imagemagick/pdf.pdf=>/home/digiscrap/domains/fotoservice.digiscrap.nl/public_html/im agemagick/pdf-1.jpg[1] PDF 612×792 612×792+0+0 DirectClass 6.9mb”

    [12]=> string(209) “/home/digiscrap/domains/fotoservice.digiscrap.nl/public_html/imagemagick/pdf.pdf=>/home/digiscrap/domains/fotoservice.digiscrap.nl/public_html/im agemagick/pdf-2.jpg[2] PDF 612×792 612×792+0+0 DirectClass 6.9mb”

    [13]=> string(209) “/home/digiscrap/domains/fotoservice.digiscrap.nl/public_html/imagemagick/pdf.pdf=>/home/digiscrap/domains/fotoservice.digiscrap.nl/public_html/im agemagick/pdf-3.jpg[3] PDF 612×792 612×792+0+0 DirectClass 6.9mb”

    [14]=> string(209) “/home/digiscrap/domains/fotoservice.digiscrap.nl/public_html/imagemagick/pdf.pdf=>/home/digiscrap/domains/fotoservice.digiscrap.nl/public_html/im agemagick/pdf-4.jpg[4] PDF 612×792 612×792+0+0 DirectClass 6.9mb” }

    Plugin Author binarystash01

    (@binarystash01)

    You are running it as root?

    Thread Starter digiscrap

    (@digiscrap)

    I really don’t know… sorry….

    Plugin Author binarystash01

    (@binarystash01)

    It is the username or login name that the VPS console asks you.

    Thread Starter digiscrap

    (@digiscrap)

    Ah! Sorry ??

    Yes, as admin!

    Plugin Author binarystash01

    (@binarystash01)

    That’s strange. You’re viewing the contents of imagemagick via ftp? ??

    Thread Starter digiscrap

    (@digiscrap)

    Yes I do…..

    Plugin Author binarystash01

    (@binarystash01)

    Can you try this?

    cd /home/digiscrap/domains/fotoservice.digiscrap.nl/public_html/imagemagick/

    convert pdf.pdf pdf.jpg

    This is the only command needed to convert pdfs to images. ??

    Plugin Author binarystash01

    (@binarystash01)

    Thread Starter digiscrap

    (@digiscrap)

    I changed permission of the imagemagick folder to 777 and now I can convert the pdf into images. But is it save to change permission to 777 ???

Viewing 15 replies - 16 through 30 (of 32 total)
  • The topic ‘After upload PDF only white images’ is closed to new replies.