[poppler] Gfx::opSetFillRGBColor generates warnings

Axel Strübing axel.struebing at freenet.de
Thu Nov 24 11:22:42 PST 2011


Dear popplers,

I lately noticed a lot of warnings
'Bad color space - expected name, array or dict'

These warnings are due to 
0 0 0 rg 
or similar (different numbers) in the content stream of a page. This command 
is valid pdf.

IMHO the cause is a typo in Gfx::opSetFillRGBColor where
------------
  if !obj.isNull()) {
    colorSpace = GfxColorSpace::parse(&obj, this);
  }
------------
should be  changed to 
------------
  if (!obj.isNull()) {
    colorSpace = GfxColorSpace::parse(&obj, this);
  }
------------

Despite this warning the further processing seems to be correct.

Please feel free to comment or correct me.

--
regards
Axel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Gfx.patch
Type: text/x-patch
Size: 412 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/poppler/attachments/20111124/26364e02/attachment.bin>


More information about the poppler mailing list