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.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.