Thanks for your help, Another problem with Datamatrix ... BarcodeDatamatrix datamatrixBarCode = new BarcodeDatamatrix(); datamatrixBarCode.setOptions(BarcodeDatamatrix.DM_AUTO); datamatrixBarCode.setHeight(14); datamatrixBarCode.setWidth(14); datamatrixBarCode.generate(MyDatamatrixCode); com.lowagie.text.Image imgorderBarCode = datamatrixBarCode.createImage(); imgorderBarCode.setAbsolutePosition(100,100); content.addImage(imgorderBarCode);
==> This compile but when executing I have a null pointer exception at imgorderBarCode.setAbsolutePosition(100,100); Is there another way to define the position of the image ? content.addImage(imgorderBarCode,imgorderBarCode.width(), 0, 0, imgorderBarCode.height(), 100, 100); but this won't compile :s thanks again for your help -- View this message in context: http://www.nabble.com/Inserting-datamatrix-tp16674683p16677060.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Do you like iText? Buy the iText book: http://www.1t3xt.com/docs/book.php Or leave a tip: https://tipit.to/itexttipjar