[poppler] Bug 69485

Ross Moore ross.moore at mq.edu.au
Mon Jan 6 19:04:36 PST 2014


Hi Alex,

On 07/01/2014, at 12:56 PM, Alex Korobkin wrote:

> Adrian,
> 
> 2014/1/6 Adrian Johnson <ajohnson at redneon.com>
> I was looking at the imagemask-with-pattern.ps test case in
> http://bugs.ghostscript.com/show_bug.cgi?id=689818 and noticed the "pop"
> in the /PaintProc.
> 
> Does this change fix the bug?
> 
> -   /PaintProc { CairoPattern }
> +   /PaintProc { pop CairoPattern }

Well spotted!
The pop is used to remove the Pattern dictionary pointer,
which isn't being used by the  CairoPattern  procedure.

The same result is given by putting the 'pop' at the
beginning of CairoPattern : viz.

   /CairoPattern { pop
   ....
   } bind def

Then  /PaintProc { CairoPattern }   is fine.

> 
> 
> Wow, it does indeed solve the problem for the Distiller! I can certainly open my china-visa-application file in Distiller with this modification, no errors reported and the document looks correct. 

Glad you got this fixed, without my hacky  "1 0 0 setrgbcolor".
It seems the problem was really due to a faulty /Pattern Colorspace,
whose  PaintProc  was leaving extra dictionary pointers on the stack.
Ghostscript must be able to tolerate this, whereas Distill does not.

> 
> I cannot test with a Ricoh printer right now, will report tomorrow. 
> -Alex


All the best,

	Ross

------------------------------------------------------------------------
Ross Moore                                       ross.moore at mq.edu.au 
Mathematics Department                           office: E7A-206      
Macquarie University                             tel: +61 (0)2 9850 8955
Sydney, Australia  2109                          fax: +61 (0)2 9850 8114
------------------------------------------------------------------------

-------------- next part --------------
A non-text attachment was scrubbed...
Name: logo.png
Type: image/png
Size: 5257 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/poppler/attachments/20140107/60592594/attachment-0001.png>
-------------- next part --------------




More information about the poppler mailing list