<div>Hi Poppler folks,</div><div><br></div><div> I encountered a weird bug with some images in a PDF. It seems like CMYK data is being interpreted as RGB data, or something similar to that - the pixel stride is off causing the image to be repeated multiple times.</div>

<div><br></div><div> PDF Page file can be downloaded from: <a href="http://derp.ltd.uk/843-21307-16.pdf">http://derp.ltd.uk/843-21307-16.pdf</a></div><div><br></div><div>Example of problem image, extracted with pdfimages: <a href="http://i.imgur.com/YSTCKkb.jpg" target="_blank">http://i.imgur.com/YSTCKkb.jpg</a></div>
<div>The image shows with `pdfimages` as:</div><div><div><font face="courier new, monospace">page   num  type   width height color comp bpc  enc interp  object ID</font></div>
<div><font face="courier new, monospace">---------------------------------------------------------------------</font></div><div><font face="courier new, monospace">   1     7 image     759   185  cmyk    4   8  jpx    no        68  0</font></div>

</div><div><br></div><div>I have tested 2 versions of Poppler with 2 versions of LCMS and exhibit the problem. Google Chrome also has similar problems.</div><div><ul><li>Evince from Ubuntu 12.10 (Poppler 0.20.4-0ubuntu1.1 with LCMS2 2.2+git20110628-2ubuntu4) without openjpeg</li>

<li>pdftoppm - Poppler 0.22.0 + LCMS 1.19 (custom build) - without openjpeg</li></ul></div><div><br></div><div>Example page images:</div><ul>
<li>Ghostscript: <a href="http://i.imgur.com/dfLLptb.jpg" target="_blank">http://i.imgur.com/dfLLptb.jpg</a></li><li>Photoshop: <a href="http://i.imgur.com/BylwJWW.jpg" target="_blank">http://i.imgur.com/BylwJWW.jpg</a></li>
<li>Poppler: <a href="http://i.imgur.com/8cderTo.jpg" target="_blank">http://i.imgur.com/8cderTo.jpg</a> (shows buggy image)</li>
</ul><div>The PDF was processed using SmartCreate by QuadGraphics, combined by Adobe Acrobat 8.0... unsure of the original software used to create the individual files.</div><div><br></div><div><br></div><div>On a related note I'm unable to build the current Poppler from git, otherwise I would've tested with it too. Getting link errors like:</div>
<div>  Linearization.cc:(.text+0x4dc): undefined reference to `error(ErrorCategory, long, char const*, ...)</div>