Summary: | PDF file does not display | ||
---|---|---|---|
Product: | Ghostscript | Reporter: | Till Kamppeter <till.kamppeter> |
Component: | PDF Interpreter | Assignee: | Default assignee <ghostpdl-bugs> |
Status: | NOTIFIED FIXED | ||
Severity: | normal | ||
Priority: | P4 | ||
Version: | master | ||
Hardware: | All | ||
OS: | All | ||
URL: | http://www.cups.org/str.php?L1779 | ||
Customer: | Word Size: | --- | |
Bug Depends on: | |||
Bug Blocks: | 689315 | ||
Attachments: |
PDF file which causes error
Fix for displaying attached PDF W8700H6349.jpg patch |
Description
Till Kamppeter
2007-07-04 04:58:42 UTC
See also http://www.cups.org/str.php?L1779 --------------------------------------------------------------------------------- I've got a PDF for which pdf2ps will failed. This is preventing me from printing this PDF. What's disturbing is the fact this bug was already reported and fixed, so this is a regression. [admin@info1 PB PDF]$ pdf2ps Anne_DESCRIPTIF.pdf **** 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 15 --nostringval-- %for_pos_int_continue --nostringval-- --nostringval-- --nostringval-- --nostringval-- %array_continue --nostringval-- false 1 %stopped_push --nostringval-- %loop_continue --nostringval-- 728763 Dictionary stack: --dict:1116/1686(ro)(G)-- --dict:0/20(G)-- --dict:85/200(L)-- --dict:85/200(L)-- --dict:104/127(ro)(G)-- --dict:241/347(ro)(G)-- --dict:20/24(L)-- --dict:4/6(L)-- --dict:20/20(L)-- --dict:1/1(ro)(G)-- Current allocation mode is local Last OS error: 2 ESP Ghostscript 815.01: Unrecoverable error, exit code 1 --------------------------------------------------------------------------------- This is ths same file but not the same error. Patch for this error attached. Created attachment 3145 [details]
PDF file which causes error
Created attachment 3146 [details]
Fix for displaying attached PDF
The patch that fixes error recovery from the errors in image processing has been in the HEAD for a while. The question is why Ghostscript cannot display the image but Acrobat can? Created attachment 3153 [details]
W8700H6349.jpg
Image that causes the problem. This can be displayed by other image viewers,
but not Ghostscript.
Test with: gs lib/viewjpeg.ps -c "(W8700H6349.jpg) viewJPEG"
and it gets ioerror in image.
Created attachment 3161 [details]
patch
Fix JPEG library configuration, which was set for 8086-style segmented model
and
limited the size of memory chunks to 64K.
I had also been working on this and had committed the fix before I saw Alex's. I had assumed that since the 'who_owns_what' has me as owner for jpeg.dev, I would fix it. Fixed by svn rev 8099 |