I'm trying to create a Multiline QR-Code using TCPDF Library.
When the generated QR-Code is scanned, the result should look like as the following:
Full Name
CNIC No. 12345-6789123-5
My Code:
$text = '';
$tcpdf->write2DBarcode($text, 'QRCODE,H', 50, 50, 50, 50, $style, 'N');
$tcpdf->Output('example.pdf', 'I');
I've tried $text with the following values but all shows in single line in the QR-Code generated by TCPDF:
$text = 'Habib \u000D CNIC No. 12345-6789123-4';
$text = 'Habib \u000A CNIC No. 12345-6789123-4';
$text = 'Habib %0A CNIC No. 12345-6789123-4';
$text = 'Habib %0D CNIC No. 12345-6789123-4';
$text = 'Habib \r\n CNIC No. 12345-6789123-4';
While considering that this is my first question kindly neglect the format or pattern of the standard questions.