Hello, I'm trying to use the QR Code object.
Currently I'm using a xml file to populate the document, but in the future will be used an API.
The value for the QR Code is variable so different inputs will generate different QR Code size.
My ideal goal would be to have all the QR Codes with 30mm x 30mm ( actual QR size, excluding the borders).
If not possible the 30mm x 30mm is the minimum size for the QR.
Any suggestions?
Solved! Go to Solution.
Views
Replies
Total Likes
Check this out if moduleWidth and moduleHeight can do something for you.
I added below in initialize event and its changing its dimensions:
this.resolveNode("ui.#barcode").moduleWidth = "0.04in";
this.resolveNode("ui.#barcode").moduleHeight = "3in";
Allowed value range for this:
Module Height/Width: 1 - 4 (whole numbers for PDF417), 1 (QR Code and Data Matrix)
Module Width: 0.0133 - 0.04 inches
It totally depends upon the amount of data, it keeps growing as per the data.
However, you can set the initial H*W for this.
You can have some test cases for the amount of data that will come from your API and can set the average dimension accordingly.
Hi @Vijay_Katoch . But even if I set the H*W, as 40x40 for example, if the amount of data is not much, the QR itself will not me 40x40, it will be way smaller. So isn't there a way that I can always guarantee a minimum size for the QR itself?
Check this out if moduleWidth and moduleHeight can do something for you.
I added below in initialize event and its changing its dimensions:
this.resolveNode("ui.#barcode").moduleWidth = "0.04in";
this.resolveNode("ui.#barcode").moduleHeight = "3in";
Allowed value range for this:
Module Height/Width: 1 - 4 (whole numbers for PDF417), 1 (QR Code and Data Matrix)
Module Width: 0.0133 - 0.04 inches
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies