Jump to content

Problem with CMYK images in ezpdf


CanMan2004

Recommended Posts

Hi all

I am using ezpdf (http://www.ros.co.nz/pdf/) to create a dynamic PDF file, I use 'addJpegFromFile' to insert the image.

For some reason, when I use a RGB JPEG image on the PDF is appears fine, but when I use a CMYK image on the PDF, the image appears corrupted but the rest of the PDF is fine.

Has anyone had this issue or know how to fix it?

Thanks in advance

Ed
Link to comment
https://forums.phpfreaks.com/topic/29518-problem-with-cmyk-images-in-ezpdf/
Share on other sites

CMYK color is intended for use with print, not screen. As such, you'll find that many, many web related technologies and applications will not support the proper display of CMYK images. You really need to get into the practice of using RGB, as this is the color schema designed for screen display. See [url=http://www.webdevelopersnotes.com/graphics/basics_of_web_images.php3]this article[/url] for a little more clarification on web imagery.
Would I be right in assuming that you are generating a pdf from the content of a web page and that the jpegs are compressed?

If your users are just "regular joes" that are using a home printer then I wouldn't worry about cmyk images.  Acrobat Reader and the printer will work out the colours needed and the image will be fine for A4.

You only really need to use cmyk if you want hi-end press ready work or your users have RIP technology.

Hope that helps.
Gav

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.