Fix for 687081, PDF file produces incomplete tiff, fails to run in display device
Alex Cherepanov <[email protected]>
| Newsgroups | gmane.comp.printing.ghostscript.patches |
|---|---|
| Organization | Coscript Software |
| Message-ID | <[email protected]> |
Fix error recovery code for PDF image; pop the operand of image operator restored by the standard PS error recovery. The image object "34 0 obj" is incorrect. It contains: << /BitsPerComponent 1 /Mask [ 130 130 ] ... >> but the mask components must be < 2**BitsPerComponent We can try to do something better than discarding the whole image. _______________________________________________ gs-code-review mailing list [email protected] http://www.ghostscript.com/mailman/listinfo/gs-code-review
pdf_draw.ps.diff
(text/plain, 576 B)
Index: gs/lib/pdf_draw.ps
===================================================================
RCS file: /cvs/ghostscript/gs/lib/pdf_draw.ps,v
retrieving revision 1.77
diff -b -u -r1.77 pdf_draw.ps
--- gs/lib/pdf_draw.ps 8 Oct 2003 11:43:02 -0000 1.77
+++ gs/lib/pdf_draw.ps 15 Oct 2003 20:48:34 -0000
@@ -939,6 +939,7 @@
{ ColorSpace setgcolorspace currentdict end setfillblend /image }
ifelse
.systemvar stopped {
+ pop
$error /errorname get dup /ioerror eq {
pop (\n **** Warning: File has insufficient data for an image.\n)
pdfformaterror