Closed ianhattti closed 1 year ago
Just an update on this: this isn't the mpdf/qrcode library doing this. I can edit the mdpf.php file to force sending multiple spaces and the QR code is correctly generated. The spaces must be being stripped before they get sent to the QrCode function, presumably somewhere in Mpdf.php...
I found this bug
Attempting to create a QR code with the value
ETEX14 0001
(where there are 6 consecutive spaces) - the extra spaces are getting stripped and the resulting code isETEX14 0001
- I have searched for where this is happening and not been able to find it or find any work-around. I have checked that I am able to read a QR code with the spaces correctly encoded by using a different tool to generate the QR code so I am reasonably sure the code is being "minified" somewhere in mPDF and excess spaces stripped out. I have not been able to find any option or configuration change that will stop this happening despite searching for several hours and attempting many configuration changes. I apologize if this is a configuration issue and not a bug, but I have not been able to get this working.This is mPDF and PHP version and environment (server/fpm/cli etc) I am using
Using mpdf/mpdf V8.0.10, mpdf/qrcode V1.2.0 running under PHP 7.4 on Apache V2.4.41
This is the PHP code snippet I use
This is the HTML/CSS code snippet I use