Expand my Community achievements bar.

SOLVED

QR Code size

Avatar

Level 1

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?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

https://help.adobe.com/en_US/AEMForms/6.1/DesignerScriptingRef/WS92d06802c76abadb-3e14850712a151d270...

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

https://help.adobe.com/en_US/AEMForms/6.1/DesignerHelp/WS92d06802c76abadb-728f46ac129b395660c-7cb4.2...

 

View solution in original post

3 Replies

Avatar

Community Advisor

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.

Avatar

Level 1

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? 

Avatar

Correct answer by
Community Advisor

https://help.adobe.com/en_US/AEMForms/6.1/DesignerScriptingRef/WS92d06802c76abadb-3e14850712a151d270...

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

https://help.adobe.com/en_US/AEMForms/6.1/DesignerHelp/WS92d06802c76abadb-728f46ac129b395660c-7cb4.2...