qrcode icon indicating copy to clipboard operation
qrcode copied to clipboard

Allow CMYK colors in Mpdf Output

Open rasteiner opened this issue 3 years ago • 2 comments

This PR allows the Mpdf Output function to pass along an optional fourth argument to SetDrawColor and SetFillColor, so that CMYK colors can be used for the QR Code.

rasteiner avatar Jan 17 '23 13:01 rasteiner

Thanks for the PR.

The spread operator cannot be used for this to be compatible with mPDF in lower versions of PHP.

Also, a unit test for the change should be present (which would reveal the incompatibility mentioned).

finwe avatar Jun 04 '24 12:06 finwe

The test setup seems to be configured only for PHP 5.6 onwards.

Argument unpacking was introduced in PHP 5.6, so that should work. Therefore I'm not sure to which lower PHP version you are referring to. I have added a unit test, the GitHub action however seems to require a human approval to run the tests.

rasteiner avatar Jun 04 '24 16:06 rasteiner