--- poppler-0.15.2/poppler/PSOutputDev.cc- 2010-11-10 23:31:51.000000000 +0100 +++ poppler-0.15.2/poppler/PSOutputDev.cc 2010-11-26 03:52:13.871729108 +0100 @@ -4544,7 +4562,7 @@ // image/imagemask command if ((inType3Char || preload) && !colorMap) { writePSFmt("{0:d} {1:d} {2:s} [{3:d} 0 0 {4:d} 0 {5:d}] pdfImM1a\n", - width, height, invert ? "true" : "false", + width, height, invert ? "false" : "true", width, -height, height); } else if (colorMap) { writePSFmt("{0:d} {1:d} 8 [{2:d} 0 0 {3:d} 0 {4:d}] pdfIm1\n", @@ -4552,7 +4570,7 @@ width, -height, height); } else { writePSFmt("{0:d} {1:d} {2:s} [{3:d} 0 0 {4:d} 0 {5:d}] pdfImM1\n", - width, height, invert ? "true" : "false", + width, height, invert ? "false" : "true", width, -height, height); }