|
From: Jeremias M. <de...@je...> - 2011-11-01 20:51:46
|
Hi Marcos Please read: http://barcode4j.sourceforge.net/2.1/symbol-datamatrix.html#Notes The error means you've restricted the possible room for the algorithm too much to fit your message using a combination of minimum/maximum symbol size and/or square/rectangular form. If you've taken SampleBarcodeEnhanced as is, then you may just need to remove the line with "bean.setShape(SymbolShapeHint.FORCE_RECTANGLE)". HTH On 01.11.2011 21:10:30 MARCOS PIÑEIRO wrote: > > Hi, My name's Marcos. > > > I've been using your barcode4j to generete a datamatrix. > > > I downloaded the source file, and i've opened the file SampleBarcodeEnhanced.java,and i already genereted a png image succesfullly, but i also want to add more words in the part of the string msg, i all looks good, but when i compiled it, generates an error this one: > > > java.lang.IllegalArgumentException: Can't find a symbol arrangement that matches the message. Data codewords: 50 > at org.krysalis.barcode4j.impl.datamatrix.DataMatrixSymbolInfo.lookup(DataMatrixSymbolInfo.java:149) > at org.krysalis.barcode4j.impl.datamatrix.DataMatrixHighLevelEncoder$EncoderContext.updateSymbolInfo(DataMatrixHighLevelEncoder.java:282) > at org.krysalis.barcode4j.impl.datamatrix.DataMatrixHighLevelEncoder$C40Encoder.encode(DataMatrixHighLevelEncoder.java:375) > at org.krysalis.barcode4j.impl.datamatrix.DataMatrixHighLevelEncoder.encodeHighLevel(DataMatrixHighLevelEncoder.java:134) > at org.krysalis.barcode4j.impl.datamatrix.DataMatrixLogicImpl.generateBarcodeLogic(DataMatrixLogicImpl.java:50) > at org.krysalis.barcode4j.impl.datamatrix.DataMatrixBean.generateBarcode(DataMatrixBean.java:128) > at SampleBarcodeEnhanced.generate(SampleBarcodeEnhanced.java:65) > at SampleBarcodeEnhanced.main(SampleBarcodeEnhanced.java:131) > > > I don't know what to do, i've been searching but I havent found anything, I hope that you could help me, beforehand thank you so much!! > > > > > > Jeremias Maerki |