QR Code size | Community
Skip to main content
New Participant
May 16, 2023
Solved

QR Code size

  • May 16, 2023
  • 1 reply
  • 2085 views

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Vijay_Katoch

https://help.adobe.com/en_US/AEMForms/6.1/DesignerScriptingRef/WS92d06802c76abadb-3e14850712a151d270d-7ecd.2.html

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.html

 

1 reply

Vijay_Katoch
New Participant
May 17, 2023

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.

New Participant
May 17, 2023

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? 

Vijay_Katoch
Vijay_KatochAccepted solution
New Participant
May 17, 2023

https://help.adobe.com/en_US/AEMForms/6.1/DesignerScriptingRef/WS92d06802c76abadb-3e14850712a151d270d-7ecd.2.html

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.html