Basically I am wondering if anyone has ever tried using the
com.lowagie.text.pdf.BarcodeDatamatrix class to create a datamatrix barcode.Ive
been trying and trying and i keep getting errors. basically i have this... Im
using coldfusion. datamatrixBarCode =
CreateObject("java","com.lowagie.text.pdf.BarcodeDatamatrix");datamatrixBarCode.setOptions(JavaCast('int',0));datamatrixBarCode.setHeight(JavaCast("int",0));datamatrixBarCode.setWidth(JavaCast("int",0));
g = datamatrixBarCode.generate(JavaCast('string','Hi')); if(g eq 0){
imgorderBarCode = datamatrixBarCode.createImage();
document.add(imgorderBarCode );} now according to the docs the createImage()
creates an Image class, but when dumping the class I see its creating a
com.lowagie.text.ImgCCITT class. This class implements the Element interface
and also extends the Image class. So why doesnt this work? the add() can
accept an image class. Any help would be appreciated. Ive gone a step further
and tried this... if(g eq 0){ imgorderBarCode =
datamatrixBarCode.createImage(); p1 = createObject("java",
"com.lowagie.text.Paragraph").init("");
p1.add(createObject("java","com.lowagie.text.Phrase").init(createObject("java","com.lowagie.text.Chunk").init(imgorderBarCode,
JavaCast('float',0), JavaCast('float',0)))); document.add(p1);} but the Chunk
class will not accept a class of com.lowagie.text.ImgCCITT. its looking again
for an Image class. but that ImgCCITT Extends the Image class. What can i
do??
_________________________________________________________________
It’s the same Hotmail®. If by “same” you mean up to 70% faster.
http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_broad1_122008------------------------------------------------------------------------------
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.1t3xt.com/docs/book.php