Hello, I have ton insert some datamatrix in a PDF
my company bought a font to convert the code into a datamatrix so I have (in the code of the current page) content = stamp.getOverContent(ActualPage); content.saveState(); BaseFont bf = BaseFont.createFont("c:/windows/fonts/MW6Matrix.TTF", BaseFont.CP1252, BaseFont.NOT_EMBEDDED); content.beginText(); content.setFontAndSize(bf, 6); content.setTextMatrix(100, 120); content.showText(MyDatamatrixCode); content.endText(); The pdf is well create, bit if I send it to someone witout the Font, the code of the datamatrix appear, not the Datamatrix. If I replace "BaseFont.NOT_EMBEDDED" With "BaseFont.EMBEDDED" I have an error of license restriction ... Well, How can I ignore this error and Embbed the font in the PDF ? or ... is there another way to insert a datamatrix in the PDF ? Thanks for your attention. -- View this message in context: http://www.nabble.com/Inserting-datamatrix-tp16674683p16674683.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