Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 744
Robert Kovačević Avatar asked Dec 27 '22 09:12

Robert Kovačević


1 Answers

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
like image 137
Codo Avatar answered Dec 30 '22 11:12

Codo