Unable to add logo space with PDF output #162
Replies: 6 comments 20 replies
-
The error means that the string you try to encode does not fit into the QR Code. Try increasing the version number or set it to |
Beta Was this translation helpful? Give feedback.
-
hmm @codemasher i'm not seeing a public is there any docs on what the versions mean, and how to determine the "best" version to used based on the length of the string being passed into the qr code? (fwiw, we're just embedding dynamic URLs, approx ~70 characters or so, nothing crazy). also, is there a way to set the color of the logo space? |
Beta Was this translation helpful? Give feedback.
-
Thanks @codemasher for all your help! Will look into manually setting the background color on this end |
Beta Was this translation helpful? Give feedback.
-
@codemasher lol, no problem |
Beta Was this translation helpful? Give feedback.
-
ah got it, copy that; will try now |
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm attempting to generate a QR Code with
addLogoSpace
option set totrue
, output to a PDF ('outputType' => QRCode::OUTPUT_FPDF,
. But, receiving an error, details below.Full code sample is below, w/ configuration options. Pls note I am not placing a logo in this example, just attempting to add space for it in the matrix.
I am using php v7.4.25 with the
"chillerlan/php-qrcode": "dev-main"
version in my composer.json.Thank you!
Matt
And i'm receiving the following error:
Beta Was this translation helpful? Give feedback.
All reactions