Showing results for 
Search instead for 
Do you mean 
Reply
Wim New Member
New Member
Posts: 6
Registered: ‎01-02-2015

QR-code not reading as V-card: need linebreak

Hi,

 

How can i add a linebreak in a qr-code data?

 

Thanks in advance

Wim

Account Deactivated
Posts: 2,298
Registered: ‎01-03-2012

Re: QR-code not reading as V-card: need linebreak

The current barcode data field does not support use of carriage returns as it is a single line of text.

 

I tried a number of ways to get around this limitation but was not successful. That said, you should be able to work around it by doing the following:

 

Use the external component to invoke a script to do the following:

  • add carriage returns to a string with all the vCard data
  • invoke a CLI QRCode generator to create an image of the barcode and give it the name of the job (you can pass the job name as another variable)
  • use a watermark node to place the barcode image in the document

This should be pretty straight forward if you have someone that knows a little scripting. Also, you local account team should be able to provide assistance if needed.

Highlighted
Wim New Member
New Member
Posts: 6
Registered: ‎01-02-2015

Re: QR-code not reading as V-card: need linebreak

Thanks a lot, got it working

Account Deactivated
Posts: 2,298
Registered: ‎01-03-2012

Re: QR-code not reading as V-card: need linebreak

I went back because this kept nagging me.

 

If you are using MAX for job submission there's no need to use an external script. Just add all the VCF info as a single line in the manifest and add \r\n where you need varriage returns. The QRCode will include the carriage returns and you will be able to read them with any app that can read QRCodes and supports VCF content.

 

Here's what the manifest would look like (very simple VCF)

"C:\path\to\file\jobfile.ext","BEGIN:VCARD\r\nVERSION:3.0\r\nPRODID:-//Apple Inc.//Mac OS X 10.10.1//EN\r\nN:Last;First;;;\r\nFN:First Last\r\nEMAIL;type=INTERNET;type=pref:first.last@domain.com\r\nX-ABUID:877CEFF1-48AF-4D3E-8DE1-AB460243E846:ABPerson\r\nEND:VCARD"