Created attachment 40280 [details]
a PDF file cause this problem
On Fedora 14 Linux, I can't print a PDF includes Gray scale JPEG Image with evince. Evince uses libcairo to generate PostScript for printing. And I've found a generated PostScript was wrong.
It includes following code.
8 dict dup begin
/ImageType 1 def
/Width 180 def
/Height 139 def
/BitsPerComponent 8 def
/Decode [ 0 1 0 1 0 1 ] def
/DataSource currentfile /ASCII85Decode filter /DCTDecode filter def
/ImageMatrix [ 1 0 0 -1 0 139 ] def
Number of elements in Decode array is wrong when colorspace is /DeviceGray.
I attached a sample PDF and a patch to fix this problem.
Created attachment 40281 [details] [review]
a patch fix this problem
Committed to master:
Thanks for the patch.