Oct 052011
 

An experimental support for QR code and PDF417 barcodes has been added in DYMO Label 8.3. You will have to edit a label file manually, because there is no UI support yet. Just create a label in DYMO Label, save it into a file, open a file in your preferred xml editor, locate barcode type element (XPath is like /DieCutLabel/ObjectInfo/BarcodeObject/Type); enter “QRCode” or “Pdf417 ” for the Type inner text. Now you can load this label using DYMO Label Framework JavaScript Library and set the barcode content as for any other barcode type, e.g. by using label.setObjectText() or record.setText(). It will work with other APIs we provide as well.

Here is a sample label contains both barcode types, http://labelwriter.com/software/dls/sdk/samples/QA-and-Pdf417.label

 

<!--?xml version="1.0" encoding="utf-8"?>
<DieCutLabel Version="8.0" Units="twips">
    <PaperOrientation>Landscape</PaperOrientation>
    <Id>Address</Id>
    <PaperName>30252 Address</PaperName>
    <DrawCommands>
        <RoundRectangle X="0" Y="0" Width="1581" Height="5040" Rx="270" Ry="270" />
    </DrawCommands>
    <ObjectInfo>
        <BarcodeObject>
            <Name>QRBarcode</Name>
            <ForeColor Alpha="255" Red="0" Green="0" Blue="0" />
            <BackColor Alpha="0" Red="255" Green="255" Blue="255" />
            <LinkedObjectName></LinkedObjectName>
            <Rotation>Rotation0</Rotation>
            <IsMirrored>False</IsMirrored>
            <IsVariable>False</IsVariable>
            <Text>1234567890</Text>
            <Type>QRCode</Type>
            <Size>Large</Size>
            <TextPosition>None</TextPosition>
            <TextFont Family="Arial" Size="8" Bold="False" Italic="False" Underline="False" Strikeout="False" />
            <CheckSumFont Family="Arial" Size="8" Bold="False" Italic="False" Underline="False" Strikeout="False" />
            <TextEmbedding>None</TextEmbedding>
            <ECLevel>0</ECLevel>
            <HorizontalAlignment>Center</HorizontalAlignment>
            <QuietZonesPadding Left="0" Top="0" Right="0" Bottom="0" />
        </BarcodeObject>
        <Bounds X="331" Y="57.9999999999999" Width="1434.3307302029" Height="1435" />
    </ObjectInfo>
    <ObjectInfo>
        <BarcodeObject>
            <Name>Pdf417Barcode</Name>
            <ForeColor Alpha="255" Red="0" Green="0" Blue="0" />
            <BackColor Alpha="0" Red="255" Green="255" Blue="255" />
            <LinkedObjectName></LinkedObjectName>
            <Rotation>Rotation0</Rotation>
            <IsMirrored>False</IsMirrored>
            <IsVariable>False</IsVariable>
            <Text>1234567890</Text>
            <Type>Pdf417</Type>
            <Size>Large</Size>
            <TextPosition>None</TextPosition>
            <TextFont Family="Arial" Size="8" Bold="False" Italic="False" Underline="False" Strikeout="False" />
            <CheckSumFont Family="Arial" Size="8" Bold="False" Italic="False" Underline="False" Strikeout="False" />
            <TextEmbedding>None</TextEmbedding>
            <ECLevel>0</ECLevel>
            <HorizontalAlignment>Center</HorizontalAlignment>
            <QuietZonesPadding Left="0" Top="0" Right="0" Bottom="0" />
        </BarcodeObject>
        <Bounds X="2086" Y="57.9999999999999" Width="2867" Height="1435" />
    </ObjectInfo>
</DieCutLabel>

  30 Responses to “Experimental support for QR code and PDF417 barcodes”

  1. Is it possable to increase the size of the QRCode?

    • The resizing abilities are very limited in this release. It would be helpful to know what is your use case for sizing, why and how would you like the barcode can be sized? This will help us to implement it in a most useful way. Thanks.

      • I am currently printing the QRcode on a 1 1/8″ x 3 1/2″ label.
        The QRcode is printing a 1/2″ x 1/2″.
        I would like to make it fill the the label so something like 1″ x 1″

        Thanks

      • I would like to generate a QR Code, sizing 49x49mm (1,9×1,9″)

        • The sizing of QR barcodes is somewhat limited, you can use fixed Small/Medium/Large sizes to scale it, but beyond that, the size will be determined by the barcode data. If you need the exact size, the only option is to use some other library to generate barcode and than print it on the label as an image. There will be a blog post about how to do that…

  2. Is this something that I can fix with the current version or Do I have to wait for the next update?

  3. I am considering purchasing your product for company use, but the lack of QR support was a deal breaker. I’m glad to see that you are adding it.

    Ultimately I’d like to be able to print a 0.5″ square to 1″ square QR code on the D1 plastic tape. Is this currently possible? If not, could you give an ETA? Thanks!

    • Yes, it is possible, though the control over the barcode size is somewhat limited. Basically it heavily depends on the barcode data. For example, the barcode with your comment url as the data will look like
      .

      Also, if you don’t like the current sizing, you could always use any library that generates QRCode images and then print it using SDK image object.

  4. Hey ! Thank you for your work ! Your javascript framework made me buy a LabelWriter…
    I’m interesting in QRcodes too, no UI in Dymo Label software for now, but I can create label files by hand or from javascript modifying the data as needed, that’s a good point.

    But, your QR generator is limited in the data entered. I’m using QRcodes for long urls with UUID v4 parameters. And, as soon as I reach an uncounted number of characters (about 100), the QR generator does no more work.

    With resizing functionality and the UI, I hope you will modify that too !

  5. When I include the QR Code in the label, the generated image is too small. The image-resizing-border is much bigger then the code itself. Is there any possibility for resizing the code-image?

  6. Hello,
    I’ve been able to semi-successfully print QR codes on D1 (12mm) tape using a Dymo LabelManager PnP printer. The problem of course is there is no way to print “just” a QR code without the text next to it, because if you set the QRcode itself to a non-linked object, then the UI resets the type back to Code3of9.

    When is this going to be “officially” added to the GUI? I really need this asap. Seems like a good solid weekend of coding should be more than enough to add the necessary UI elements.

    • It is in our future plans but we don’t have a determined release date at this time.

      You could use DYMO Label Framework API to implement some UI for QR-code printing…

      • Thanks Vlad, but I myself am not personally up to that challenge. I guess I’ll have to wait for the next DYMO label release.

  7. Is there any update on when the QR coding will be implemented in the software?

  8. I would like for the QR code to completely fill the square multipurpose label (SKU 30332). It would like to be able to put the labels on the posters around school rather than reprint all of them. Is there a way to increase the size of the QR code other than the small/ medium/large. The sqaure labels are the perfect size for QR codes. I think it would be time consuming to print the QR codes on larger labels and have to cut off the exess white of the labels.

  9. Hi, I notice that there is no setting for PDF 417 or QR barcodes to function as a variable text object. We need to print either PDF 417 or QR codes from an Excel spreadsheet (as these two code types are the only ones that can take the code length and carachters that we need).

    Is there a way around this, or will you be supporting using PDF 417 or QR barcodes as variable text objects anytime soon?

    • Our Latest version of DLS and SDK will support PDF 417 and QR code.

      • I am afraid I am having an issue with the v.8 SDK not supporting QR barcodes as a variable text. Perhaps I am doing something else wrong, but I only get the first 3 digits in my QRCode image.

        I have a text file called test.txt which contains a Device ID of 653ff6w066667574815312166

        I then have the following in my applescript

        tell application “DYMO Label”

        openLabel in “/Documents/DYMO Label Software/Layouts/DeviceLabel-small – sans.label”

        set brc to a reference to last item of print objects
        tell brc
        set thefile to “/Applications/DYMO Label SDK/SDK Examples/Test.txt”
        set Device to (read thefile)
        set barcodeText to Device
        set hrPosition to top

        end tell

        redrawLabel

        end tell

        DeviceLabel-small – sans.label contains

        Landscape
        Small30336
        30336 1 in x 2-1/8 in

        DEVICEID

        Rotation0
        False
        True
        Left
        Middle
        AlwaysFit
        True
        False

        Device ID

        BARCODE

        Rotation0
        False
        False
        653
        QRCode
        Small
        Top

        None
        0
        Left

        • It should work. Running a similar script for a label with QR barcode object and barcode text was changed as expected. Please make sure that you are running the latest DLS v8.5.2.

          It might be easier to send an email with a problem description and the DeviceLabel-small – sans.label file to the SDK support line as mentioned at the end of the following blog post:
          http://developers.dymo.com/2011/10/12/sdk-troubleshooting-tips/

  10. It’s a long time since you added experimental feature PDF 417 or QR barcodes. Now it’s not experimental anymore. We can access these features in the UI. What about datamatrix 2D barcodes? Do you support it anyways?

    • Correct, the PDF 417 and QR barcodes are supported with the latest DLS version. No, DLS doesn’t support datamatrix 2D barcodes currently.

Leave a Reply to Brent Cancel reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)