2D Barcode Generator for ColdFusion

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default 2D Barcode Generator for ColdFusion

    Hello,

    Can anyone recommend a good ColdFusion compatible 2D Barcode generator, preferably supporting the DataMatrix format.

    Thanks!
    grotycom Guest

  2. Similar Questions and Discussions

    1. using barcode scanner with ASP / ASP.NET
      Hello, I am working with a client who wants to integrate barcode scanning technology into a website I'm building for him (ASP and ASP.NET site)....
    2. Barcode Issues
      I am creating an website which will incorporate a special offer coupon, incorporating a barcode. The idea is that the customer will print the coupon...
    3. PDF::API2 and Barcode
      Hi Folks has anybody a little example for creating a pdf-document with a ean128-barcode ? Thanks Pit
    4. Barcode Scanner
      Can director work with a barcode scanner?
    5. BARCODE FILEMAKER
      If you are looking to make barcodes in filemaker you can obtain a plug in for Filemaker from http://www.barcodeplugins.com Regards
  3. #2

    Default Re: 2D Barcode Generator for ColdFusion

    not sure what dot matrix is but there a couple in the CF exchange that do all the standard types

    cf_barcodegenerator and cf_barcode
    Pete Thomas Guest

  4. #3

    Default Re: 2D Barcode Generator for ColdFusion

    We currnetly use a java applet from [url]http://www.idautomation.com/[/url] to create a DataMatrix and PDF417 Barcode. I do not know of any cold fusion cutom tags
    kward652 Guest

  5. #4

    Default Re: 2D Barcode Generator for ColdFusion

    How tough is it to integrate? Do you have code samples?

    Thanks!
    grotycom Guest

  6. #5

    Default Re: 2D Barcode Generator for ColdFusion

    Yes, there is a way to produce the most popular formats for barcode, but you
    will need to withstand a little bit of Java. Coldfusion MX 7 includes this
    component built-in because the report generator requires it. Look up the
    documentation for iText.

    I've included a bit of sample code that we use for our internal purposes.
    Good luck with your implementation.

    <cfparam name="fileName" type="string" default="/tmp/pdf_#createUUID()#.pdf">
    <cfparam name="barcode" type="string" default="0000154000607064">
    <cfparam name="invbarcode" type="string" default="OESALES1000001157">
    <CFSCRIPT>
    pageSize = createObject("java", "com.lowagie.text.PageSize").init();
    document = createObject("java",
    "com.lowagie.text.Document").init(pageSize.LET TER, 36, 36, 36, 36);
    pdfFile = createObject("java", "java.io.FileOutputStream").init(fileName);
    writer = createObject("java",
    "com.lowagie.text.pdf.PdfWriter").getInstance(docu ment, pdfFile);
    FontFactory = createObject("java", "com.lowagie.text.FontFactory");

    barcode = ucase(barcode);

    document.open();

    cb = createObject("java", "com.lowagie.text.pdf.PdfContentByte");
    cb = writer.getDirectContent();

    code128 = createObject("java", "com.lowagie.text.pdf.Barcode128");
    code128.setCode("#invbarcode#");
    code128.setStartStopText(false);

    Color = createObject("java", "java.awt.Color");
    image128 = createObject("java", "com.lowagie.text.Image");
    image128 = code128.createImageWithBarcode(cb, Color.black, Color.black);

    rectangle = createObject("java",
    "com.lowagie.text.Rectangle").init(code128.getBarc odeSize());
    bar128X = rectangle.width();

    rectangle = pageSize.LETTER;
    letterX = rectangle.width();

    loc = (letterX - (bar128X + 75));

    p1 = createObject("java", "com.lowagie.text.Paragraph").init("");
    p1.add(createObject("java",
    "com.lowagie.text.Phrase").init(createObject("java ","com.lowagie.text.Chunk").in
    it(image128, loc, 0)));
    document.add(p1);

    document.add(createObject("java", "com.lowagie.text.Paragraph").init("* I N V
    O I C E *", FontFactory.getFont(FontFactory.HELVETICA_BOLD, javacast("float",
    28.0) )));
    document.add(createObject("java", "com.lowagie.text.Paragraph").init(" "));

    document.close();
    </cfscript>
    <CFCONTENT TYPE="application/pdf" FILE="#fileName#" DELETEFILE="yes">

    jasonaz Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139