Ghostscript pdf2jpg - colours wrong?

View: New views
1 Messages — Rating Filter:   Alert me  

Ghostscript pdf2jpg - colours wrong?

by bilf :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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?