سؤال

My client says that the generated PDFs must be in CMYK format. Can Prawn do this?

I can't find the answer in the documentation.

هل كانت مفيدة؟

المحلول

Yes, Prawn can do this. This topic seems to be omit by documentation, so that you can look at source code. This example demonstrates Prawn's support for CMYK images and colors. For example, Prawn::Graphics::Color#fill_color take either one argument or four arguments. If a single argument is provided, it should be a 6 digit HTML color. If 4 arguments are provided, the color is assumed to be a CMYK value.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top