A special kind of text frame is the Barcode Frame. If a frame with the Barcode feature is selected and you switch to the Text tab, the frame will show the Barcode properties.
Barcodes are always displayed fully fitted and in proportion to their assigned frames. Text will define the Barcode content. You can use the same ${…} options as in single line text frames. See Single Line text features for more information.
Code Type - Selects the Barcode type:
Barcode Options: Here you can set many additional properties, which are available depending on the type of Barcode. (AutoSize, HumanReadableText, DisplayCode, Symbology, etc.)
For example to change the barcode to Code49, you would simply enter:
{
"Symbology": "Code49"
}
Click here for various Barcode Option property examples.
Barcode Color: Defines the color of the drawn portion of the Barcode. The background will remain transparent until you adds a shape feature to define the background color.
To set up a QR Code to be used as a vCard you have to add the Single Line Text Form Fields which should be part of the QR Code to your Printess Template first. In this example “FirstName”, “LastName” and “EMail”.
Now add a Multi Line Text Form Field as well to name it “vCard”.
Just press “OK” and open the Properties of that Form Field (press the gear icon on the right of the Form Field).
Set the Visibility to “Designer Side” because we don’t want to show it at the Buyer Side. It will only be used to collect all informations you would like to write into the QR Code.
You have to be familiar with the vCard format to get a working result. It has to start with “BEGIN:VCARD”, it needs a version to be defined “VERSION:3.0” and it ends with “END”:VCARD". The character set has to be defined and the included Form Fields has to be assigned to “Full Name” (FN), “Name” (N), “EMail” (EMAIL;WORK;INTERNET) etc.
All these information has to be written into the Form Field “vCard”.
Now you can place the QR Code on the page. Just select this Text type from the Text Tab at the Features Panel. While the QR Code Frame is activated:
Assign the Form Field “vCard” to the QR Code. Remove the default text “123456” from the Text Input Field and write "${form.vCard} or do a right mouse click to select the Form Field “vCard” from the list.
Set up the right encoding to the QR Code to support the vCard feature. Therefore copy the following script into the “barcodeOptions”:
{
"QRCodeEncoding":"Byte",
"QRCodeByteEncodingName": "utf-8",
"QRCodeProcessTilde": true
}
Now the QR Code could be used as a vCard. To include all common information you can just use the following code to copy it into the vCard Form Field:
BEGIN:VCARD
VERSION:3.0
FN;CHARSET=UTF-8:${form.FirstName} ${form.LastName}
N;CHARSET=UTF-8:${form.LastName};${form.FirstName}
TITLE:${form.Title}
TEL;CELL:${form.TelCell}
TEL;WORK;VOICE:${form.TelWork}
EMAIL;WORK;INTERNET:${form.EMail}
URL:${form.Website}
ADR;;;CHARSET=UTF-8:${form.Street};${form.City};;${form.AreaCode};${form.Country}
ORG:${form.Company}
END:VCARD
But of course you have to add the corresponding Form Fields to the Template to make it work.