views:

378

answers:

2

Hi,

I'm using the Ghostscript API from c#, to convert multipage PDF's to jpgs.

My issue is with colour conversion.

When I open the Source PDF in photoshop, and export to jpeg, each colour in each jpeg matches the colours of the original PDF perfectly.

However, when I run the process through Ghostscript, the colour come out as different shades than the original. eg:

Original PDF colour: #8DBB3F; Photoshop pdf to jpg colour: #8DBB3F; Ghostscript pdf2jpg colour: #7DEE00;

This happens with all colours - all slightly to massively different shades.

These are the arguements passed to ghostscipt:

"pdf2jpg -dNOPAUSE -dBATCH -dSAFER -sDEVICE=jpeg -r150 -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -dMaxStripSize=8192 -sOutputFile=myfile-%d.jpg

Can anyone help?

A: 

try "-dUseCIEColor"

A: 

Add -dUseCIEColor (as sovo said) plus try adding -dJPEGQ=95 to set JPEG quality to 95%.

pipitas