blackbeam / poppler-simple

A simple javascript interface to poppler library
Apache License 2.0
37 stars 14 forks source link

CMYK Support #14

Open yotamlaufer opened 8 years ago

yotamlaufer commented 8 years ago

Is it possible to add CMYK support? Poppler seems to support it.

blackbeam commented 8 years ago

Hi! You have problems with rendering or with something else? Could you describe your problem and, if possible, provide sample PDF file?

yotamlaufer commented 8 years ago

Hi @blackbeam, I don't have a problem at all, on the contrary, it works incredibly well.

The only problem I'm facing is that I need to create CMYK images from a PDF file and that is not supported since RGB is hard coded.

When I compile Poppler with SPLASH_CMYK, and node-gyp rebuild then the library stops working at all.

It will be really great if I could do something like this:

pdf.renderToFile('filename.jpg', 'jpeg', 300, {quality: 100, colorspace: 'cmyk'});
TyrfingMjolnir commented 6 years ago

Does the version of jpeg/jfif used support CMYK? IIRC TIFF is an option.