Lucee cfdocument, creating Barcodes - installing a barcod font?

116 views
Skip to first unread message

Jeff Bourassa

unread,
Feb 14, 2016, 3:17:00 PM2/14/16
to Lucee
We are moving some project sites to Lucee on Windows/IIS server.

So far so good as far as overall.  One area with issues is getting barcodes onto our cfdocument/PDFs.  We were using Barbeque CF/COM for this, but that no longer is working so looking for options.

Thinking that installing a suitable barcode font, and calling that will likely do the trick -

So how do I install a font in Lucee (on windows) and call that in cfdocument?

Any help would be most appreciated!

Also - any other ideas on how to handle this let me know - this is one area that was working great in railo and no longer works now.


Jeff



Tom King

unread,
Feb 15, 2016, 6:34:50 AM2/15/16
to Lucee
This is the best blog post on cfdocument - half way down are some instructions on using custom fonts in lucee;
Works for me (not for a barcode font, but other TTF fonts)

Samuel W. Knowlton

unread,
Feb 15, 2016, 9:02:55 AM2/15/16
to Lucee
Dear Jeff,

We have a barcode application (in Adobe CF, not yet in Lucee) that has to produce several hundred thousand barcodes and then merge them into PDFs. We use cfdocument for the merge portion but not the actual generation. We looked into the custom font approach but it seemed clunky.

Instead, we use barcode4j - http://barcode4j.sourceforge.net/ - a simple Java app that you can drop into tomcat and run as a service. I can't recommend it enough and the developer was helpful on a couple issues (at least, four years ago, when we did it).

I don't anticipate any changes in how it would work under Lucee since all CF has to do is make the web request to the service.

Good luck!
Sam

Paul Klinkenberg

unread,
Feb 15, 2016, 9:23:00 AM2/15/16
to lu...@googlegroups.com
Barcode4J indeed rocks!
I used it a while ago for a Lucee project, directly in CFML. The example code, and jars used, can be found here: https://gist.github.com/paulklinkenberg/d7b9c6b5f2a609352bc3

Kind regards,

Paul Klinkenberg


--
Love Lucee? Become a supporter and be part of the Lucee project today! - http://lucee.org/supporters/become-a-supporter.html
---
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/719e6064-9de2-467c-a4c3-12229bbbf8c9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages