pdf - Warnings in command line become errors in php with ghostscript -


i trying use ghostscript scan pdf , tell me pages color , black , white. have written script prints out each page , color ghostscript. when run script using command line following warning:

page 56 **** warning: short look-up table in indexed color space padded 0's. 

this didn't seem problem because script continued until did 356 remaining pages. when ran script in php using exec() or system() functions following @ page 56:

page 56  error: /ioerror in --run-- operand stack: --dict:11/20(l)-- --dict:10/18(l)-- 3092695  indexed devicecmyk 56  (\000\000\000\000\b\001\016\000\033\0040\000\005\001\t\000\002\000\003\000\)\007k\0008\bh\000n\017\224\000w\016\247\000r\034\327\000t\033\334\000\016\001\036\000d\t\177\000]\025\264\0003\007b\000s\021\234\000m\032\317\000\275t\007\000o9\t\000i\027\311\000;\to\000c\026\272\000,\006t\000\035\0047\000\022\002#\000\177jj\016uab\006r^_\005\f\t\t\000~ii\r\204oo\024sbc\000\005\003\003\000]kl\000o[\\\003\277\255\253\346\034\025\027\000@34\000\025\017\020\000gsu\001\275\254\252\335\265\245\243\255vac\007\271\252\247\312\221{z%\262\242\240\234%\034\035\0007+,\000\245\222\220x\212ut\033...) --nostringval--  execution stack: %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1910 1 3 %oparray_pop 1909 1 3 %oparray_pop 1893 1 3 %oparray_pop --nostringval-- --nostringval-- 57 1 346 --nostringval-- %for_pos_int_continue --nostringval-- --nostringval-- --nostringval-- --nostringval-- %array_continue --nostringval-- --nostringval-- %loop_continue --nostringval-- 3092695 --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval--  dictionary stack: --dict:1162/1684(ro)(g)-- --dict:1/20(g)-- --dict:82/200(l)-- --dict:82/200(l)-- --dict:108/127(ro)(g)-- --dict:291/300(ro)(g)-- --dict:23/30(l)-- --dict:6/8(l)-- --dict:27/40(l)-- --dict:1/1(ro)(g)-- --dict:1/1(ro)(g)-- --dict:5/16(l)--  current allocation mode local last os error: 9 unrecoverable error: ioerror in quit  operand stack: --nostringval-- --nostringval--  

after error php script stop , not continue when run program in command line. why error in php only, , how can correct ignore warnings/errors?

here flags on ghostscript when call it:

gs -dnopause -dbatch -dsafer -sdevice=display -ddisplayhandle=0     -ddisplayformat=(values display_colors_rgb|display_depth_8|display_littleendian|display_bottomfirst)     test.pdf -f 

also using ghostscript-9.05

are sure php calling ghostscript finds same version commandline?

isn't possible have 2 different instances of ghostscript installed @ 2 different locations?

you should run

gs -v 

and

gs -h 

from within php commandline see if same.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -