Professional Web Applications Themes

2D Barcode Generator for ColdFusion - Coldfusion - Advanced Techniques

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

Sponsored Links
  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. #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

  3. #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

  4. #4

    Default Re: 2D Barcode Generator for ColdFusion

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

    Thanks!
    grotycom Guest

  5. #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
    doentation 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();
    doent = createObject("java",
    "com.lowagie.text.Doent").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);

    doent.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)));
    doent.add(p1);

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

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

    jasonaz Guest

Similar Threads

  1. Barcode Issues
    By Paul_D_Cordingley@adobeforums.com in forum Adobe Acrobat Macintosh
    Replies: 4
    Last Post: January 12th, 09:51 PM
  2. OT:barcode software
    By J.I.M.@adobeforums.com in forum Adobe Indesign Macintosh
    Replies: 9
    Last Post: July 21st, 01:28 PM
  3. Barcode Fonts?
    By VEA2000@adobeforums.com in forum Adobe Indesign Windows
    Replies: 15
    Last Post: May 15th, 10:09 PM
  4. Barcode Font
    By paul_paul@adobeforums.com in forum Adobe Illustrator Windows
    Replies: 4
    Last Post: May 10th, 07:52 PM
  5. BARCODE FILEMAKER
    By orchard in forum FileMaker
    Replies: 0
    Last Post: October 15th, 08:45 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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