--- poppler-git-14sep12-tiff/goo/TiffWriter.cc- 2012-09-14 01:18:44.611884590 +0200 +++ poppler-git-14sep12-tiff/goo/TiffWriter.cc 2012-09-14 02:19:58.979535886 +0200 @@ -126,6 +126,12 @@ photometric = PHOTOMETRIC_RGB; break; + case splashModeCMYK8: + case splashModeDeviceN8: + samplesperpixel = 4; + photometric = PHOTOMETRIC_SEPARATED; + break; + default: fprintf(stderr, "TiffWriter: Mode %d not supported\n", splashMode); return false; @@ -159,6 +165,11 @@ TIFFSetField(f, TIFFTAG_YRESOLUTION, (double) vDPI); TIFFSetField(f, TIFFTAG_RESOLUTIONUNIT, RESUNIT_INCH); + if (splashMode == splashModeCMYK8 || splashMode == splashModeDeviceN8) { + TIFFSetField(f, TIFFTAG_INKSET, INKSET_CMYK); + TIFFSetField(f, TIFFTAG_NUMBEROFINKS, 4); + } + return true; } --- poppler-git-14sep12-tiff/goo/TiffWriter.h- 2012-09-14 01:18:44.611884590 +0200 +++ poppler-git-14sep12-tiff/goo/TiffWriter.h 2012-09-14 02:20:35.146627636 +0200 @@ -38,6 +38,8 @@ bool writePointers(unsigned char **rowPointers, int rowCount); bool writeRow(unsigned char **rowData); + bool supportCMYK() { return true; } + bool close(); private: