When trying to convert a 1.5 pdf file created by "pixelion" to jpeg file, this error message appears : AFPL Ghostscript 8.54 (2006-05-17) Copyright (C) 2005 artofcode LLC, Benicia, CA. All rights reserved. This software comes with NO WARRANTY: see the file PUBLIC for details. Processing pages 1 through 4. Page 1 unable to decode JPX image data. **** Warning: File has insufficient data for an image. Error: /typecheck in --closefile-- Operand stack: --dict:5/5(L)-- Execution stack: %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval- - 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1 3 %oparray_pop 1 3 %oparray_pop 1 3 %oparray_pop --nostringval-- --nostringval-- 2 1 4 -- nostringval-- %for_pos_int_continue --nostringval-- --nostringval-- false 1 %stopped_push --nostringval-- --nostringval-- --nostringval-- %array_continue --nostringval-- false 1 %stopped_push -- nostringval-- %loop_continue --nostringval-- 34607 Dictionary stack: --dict:1128/1686(ro)(G)-- --dict:2/20(G)-- --dict:75/200(L)-- -- dict:75/200(L)-- --dict:105/127(ro)(G)-- --dict:253/347(ro)(G)-- -- dict:21/24(L)-- --dict:4/6(L)-- --dict:20/20(L)-- --dict:1/1(ro)(G)-- Current allocation mode is local Last OS error: 22 AFPL Ghostscript 8.54: Unrecoverable error, exit code 1
Please attach a sample file and/or try a newer version of Ghostscript (8.54 is several years old and we've made many improvements in jpx decoding).
The stack corruption '/typecheck in --closefile--' after failed decoding has been fixed long ago. JPX decoding issue cannot be solved without a sample file.
Created attachment 4872 [details] D5F84E0B1B60EBA7.mgd.pdf contening JPX Image Pdf file with "unable to decode JPX image data." issue when trying to convert it to jpeg file with this Ghostscript command : gs -dNOPAUSE -dSAFER -dBATCH -sDEVICE=jpeggray -dJPEGQ=100 -dFIXEDMEDIA -sPAPERSIZE=a4 -dNORANGEPAGESIZE -r285x285 -sOutputFile=D5F84E0B1B60EBA7.mgd%02d.jpg D5F84E0B1B60EBA7.mgd.pdf
Works for me with the current HEAD revision. I would suggest upgrading to the current release 8.64.