Error message "Cannot open the PDF. The file may be corrupt, or in an unsupported format."

Re: Error message "Cannot open the PDF. The file may be corrupt, or in an unsupported format."

by manoj gusain -
Number of replies: 0

hi ken and everyone i have same problem  

Error message "Cannot open the PDF. The file may be corrupt, or in an unsupported format."


i check system path of ghostscript  that is  /bin/usr/ghostscript its show me check sign means its correct but when i test ghostscript it show me error :

Error generating image with ghostscript, debugging info:

Command:

'/usr/bin/gs' -q -sDEVICE=png16m -dSAFER -dBATCH -dNOPAUSE -r'100' -dFirstPage='1' 

-dLastPage='1' -dDOINTERPOLATE -dGraphicsAlphaBits=4 -dTextAlphaBits=4 -sOutputFile

='/home/wwwelearnplace/educationmoodledata/temp/assignfeedback_editpdf_test/image_page0.png

' '/home/wwwelearnplace/public_html/education/mod/assign/feedback/editpdf/tests/fixtures/testgs.pdf'

can't find the proper solution is something wrong with ghostscript or need to fix something in any file or folder

we are done this in vps hosting provider server centos 7 i check which ghostscript it give me path /usr/bin/ghostscript

version is 9.25

also /home/wwwelearnplace/educationmoodledata/temp/assignfeedback_editpdf_test/image_page0.png

their is no image_page0.png  that is empty?

 what should i do i dont understand can anyone help please

TOP coomand output

top - 02:57:30 up 34 days,  5:32,  1 user,  load average: 0.79, 0.56, 0.47

Tasks: 107 total,   1 running, 106 sleeping,   0 stopped,   0 zombie

%Cpu(s):  0.0 us,  0.0 sy,  0.0 ni,100.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st

KiB Mem :  8388608 total,  2574292 free,  2627668 used,  3186648 buff/cache

KiB Swap:        0 total,        0 free,        0 used.  5331476 avail Mem


  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND

10172 root      20   0  160004   4452   3808 R   0.3  0.1   0:00.04 top

10204 sshd      20   0  112924   6292   5236 S   0.3  0.1   0:00.01 sshd

    1 root      20   0  212424  25500   3324 S   0.0  0.3  24:16.61 systemd

  124 dbus      20   0   59052   1956    844 S   0.0  0.0  14:37.00 dbus-daemon

  287 root      20   0   45720  11920   4772 S   0.0  0.1   0:47.33 queueprocd+

  746 root      20   0  129448   5336   4572 S   0.0  0.1   1:17.90 dnsadmin -