How to convert PDF from CMYK to RGB, for displaying on iPad?

Robert Kovačević picture Robert Kovačević · Dec 12, 2011 · Viewed 13.2k times · Source

According to this question:

Displaying PDF documents on iPad - Color Problems

some PDFs don't display right on iOS devices due to colors not being in RGB. It's also mentioned that converting PDFs from CMYK to RGB could be automated using ghostscript. Anyone know how the actual command might look like?

Answer

Codo picture Codo · Dec 14, 2011

We use Ghostscript to convert from CMYK to RGB when generating PDFs from Postscript files. It should also work for PDF-to-PDF conversions.

The followind command line is used:

gs -sDEVICE=pdfwrite -dBATCH -dNOPAUSE -dCompatibilityLevel=1.4 -dColorConversionStrategy=/sRGB -dProcessColorModel=/DeviceRGB -dUseCIEColor=true -sOutputFile=output.pdf input.ps