py-pdf / fpdf2

Simple PDF generation for Python
https://py-pdf.github.io/fpdf2/
GNU Lesser General Public License v3.0
993 stars 227 forks source link

Fix ValueError being raised when using DeviceCMYK to set a color #1182

Closed Lucas-C closed 1 month ago

Lucas-C commented 1 month ago

Bug spotted by @swasher in https://github.com/py-pdf/fpdf2/issues/1181

Checklist:

By submitting this pull request, I confirm that my contribution is made under the terms of the GNU LGPL 3.0 license.