Yay! I'm useful for something.  I have much experience with barcodes printing.  
Part of the system I work on includes creating barcodes for E-Tickets to be 
used for admission to amusement parks.

A couple resources for you to use: http://cfbarbecue.riaforge.org/. It's a CF 
wrapper to a Java library that can create images of barcodes.  Once you install 
it into your CF server (copy some files to a directory, restart CF), you can 
call the component to create a CFIMAGE and it will spit out a PNG or JPG or 
what ever other format it supported.

If you're planning on creating a PDF, a couple things you'll have to remember: 
CFIMAGE and CFDOCUMENT uses an HTTP call to generate those files (or something 
like that).  You'll have to either A) edit your host files to accept your 
domain B) reference the image using "file:\\\". 
http://www.ravenglass.com/blog/index.cfm/2010/6/9/Including-Images-in-a-PDF-created-in-CFDOCUMENT
 & 
http://stackoverflow.com/questions/10637542/coldfusion-cfdocument-creates-a-red-x

It isn't as complicated as it sounds, just a couple gotcha's you have to be 
prepared for.  Hope that helps.

>I'm building a membership system where I will need to print barcode labels
>(Code128) from a CF app.  I've got the barcode creation down (using a
>JQuery plugin), but haven't started the label creation piece.  I was
>thinking of using CSS + cfdocument, but am concerned that PDF's crappy
>support of CSS will cause me trouble.  Has anyone else done something like
>this?  What do I need to look out for?
>
>Thanks
>
>Pete 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:358079
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to