I am wondering  you have any examples with Datamatrix barcode.

I am able to generate a barcode with the following code:

----------------------
  BarcodeDatamatrix datamatrixBarCode = new BarcodeDatamatrix();

datamatrixBarCode.setOptions(BarcodeDatamatrix.DM_AUTO);

datamatrixBarCode.setHeight( 0 );

datamatrixBarCode.setWidth( 0);

datamatrixBarCode.generate( "some test\n" +
                                "more inforrmation");

  Image imgorderBarCode = datamatrixBarCode.createImage( );

                   document.add(imgorderBarCode);

-------------------------------------

but as soon as I change height and width to allowed values (for  
example( 20, 20)  I get an error        at com.lowagie.text.Document.add 
(Unknown Source)

A short explanation on what many other methods in that class do would  
help greatly.

Thanks,
Peter


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to