David Baldaro's home on the Internet
david@baldaro.me.uk

Bulk creation of 2D Barcodes (QR Code, DataMatrix) in XMPie

image For several versions now the XMPie’s suite of desktop tools for creating highly personalised and relevant documents has been able to support numerous variants of 1 and 2 dimensional barcodes. Code128, Code39, Codabar, EAN8, EAN13, INT2of5, MSI, OneCode, PostNet, UPCA, UPCE, PDF417, AztecCode, DataMatrix, MaxiCode, MicroPDF and QRCode to be precise!

From directly inside InDesign CS3 and CS4 XMPie’s uDirect plugin has the ability of generating and placing a barcode within the design. I blogged about this a while ago. However this is limited to using those barcodes within the printed piece. I was thinking about how you could use them online, or in an email communication, or even creating them on-mass to use in another process.

Most people seem to be content in creating single QRCodes that are then used. But what about if you want a QRCode to contain a personalised URL, or a unique piece of information linked to that the recipient?

Well, here’s one idea to create barcodes on mass by using XMPie:Individual_QRCodes_r00092_p001

  • Fire up InDesign with the XMPie plugin activated. (you can always get the 30-day free trial from www.xmpie.com)
  • Create a new document of say 50mm by 50mm
  • Connect to your database of recipients, or simple create a Counter and use that
  • Create a new image ‘Content Object’, call it QRCode, and set the expression to use the fields of your choosing.
  • Place the QRCode content object on the page and change the Dynamic Graphic Properties to ‘Fill proportionally and Centered’
  • Save the document
  • Select ‘Dynamic Print’ in the XMPie Palette and choose, JPG (or PDF) as the output format.
  • Select your output destination and records, and hit ‘OK’
  • Job done. You should have individual JPG/PDF files in the output destination folder named {filename}_r{record number}_p001.jpg

The only real drawback here is that the files are not named in a fashion that relates to their contents. It would be great if you could produce them based on an element in the database, like you can with personalised images through uImage. Having said that, you can still work productive in this manner, it just needs more careful thought.

Another reason to use XMPie I think!

Full disclosure: At the time of writing this article the author was employed by XMPie, a Xerox Company.

12 Comments to “Bulk creation of 2D Barcodes (QR Code, DataMatrix) in XMPie”

  1. I would like to be QR codes on name tags for an event. I was wondering if there was a site that would alow me to do that. any ideas?

  2. Hi David long long long time no speak, just a note re naming your output to something in the database….this really should be something that can be done but it cant….FYI GMC printnet can do this easily using any variable or create your own. Its so frustrating these, what i consider to be basic functions not being available in xmpie!

    Regards.

    • Hi there David. Indeed, long time no speak. Considering that it is so easy to include personalised QRCodes within a print piece – using consistent logic and data (through the ADOR technology) there is little need to produce codes on bulk and save them out. XMPie includes them on the fly in the print piece anyway. However, if you wanted to do this, then you could via the user of the XMPie uProduce Server. Remember here that we are talking about the low-cost desktop tools. The server offers extended functions when talking about production.

  3. Hi David,

    Thanks for the tips. I was able to put purl on pages. I am looking for putting contact info or iCal event. Is that possible? Any tip for buck contacts ?

    Regards

    CL

    • CL, Yes this is possible. You need to encode the iCAL format within the QRCode:
      BEGIN:VEVENT
      SUMMARY:Test Meeting
      DTSTART:20080811T190000Z
      DTEND:20080811T200000Z
      END:VEVENT
      This is easily personalised for bulk contact by using the rule builder to build up the expression within the QRCode function.

  4. it’s possible with uDirect/uCreate but sounds like breaking a fly on the wheel for me. i suggest to spend 80 bucks for a single desktop license of tbarcode from tec-it.com. easy to handle, easy to integrate and much more parameters to customize your linear or 2d barcode than in uDirect/uCreate.

    btw those tec-it libraries *do* the magic behind when you are calling barcode functions out of xmpie, they are bundled/integrated ;-)

    regards

    jan

    • Indeed Jan – of course you could go and buy dedicated software to do it just as well (possibly even better!). Looking at the tec-it.com website though – the prices seems to start at $116 for a single 2D license.
      I guess the point that I was making here is that if you were already an XMPie user than this capability is already on your desk.

  5. hi David, i’m interested to know more about mass QR code generation which link to purls. not quite clear. does XMPies uDirect InDesign plug in (or was it uCreate) have a generator that translates urls to QR code images? a bit like http://qrcode.kaywa.com/?
    thanks

    • Both uCreate and uDirect (which are essentially the same tool) have the built-in ability to create QR Code images. It does this directly, without any 3rd party integration (such as Kaywa) and all XMPie customer have the ability to do this (providing they are paying support and maintenance or have the latest version).
      You simple need to create a rule (ADOR) in XMPie that uses the QRCOde function to format the string that the code will contain. The function then encodes that string as a QRCode and displays back the image. Drop me a line if you need more information.

  6. Good tip! Will try this NeXT week…..

  7. “The only real drawback here is that the files are not named in a fashion that relates to their contents. It would be great if you could produce them based on an element in the database”

    there is a way to do this but its only available on the XMPie server solutions, where you can name an output filename based on an ADOR (variable from the database)

    Regards
    Alan

    • Indeed – which is great for customer that have a server. However for those that have a desktop version a more ‘creative’ solution would be needed.

Leave a Reply

Disclaimer

The opinions expressed in this website are those of the author, and do not reflect in any way those of the his employer of which any association for which he is associated with.
QR Code Business Card