As bruno said, there's a class in iText to create datamatrix images.
About your particular problem, you should contact the font owner and ask
for an embeddable version, certainly costing more $$$.
Paulo
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Julien T
> Sent: Monday, April 14, 2008 10:34 AM
> To: [email protected]
> Subject: [iText-questions] Inserting datamatrix
>
>
> 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.
Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter
informação confidencial ou legalmente protegida. A incorrecta transmissão desta
mensagem não significa a perca de confidencialidade. Se esta mensagem for
recebida por engano, por favor envie-a de volta para o remetente e apague-a do
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de
usar, revelar ou distribuir qualquer parte desta mensagem.
Disclaimer:
This message is destined exclusively to the intended receiver. It may contain
confidential or legally protected information. The incorrect transmission of
this message does not mean the loss of its confidentiality. If this message is
received by mistake, please send it back to the sender and delete it from your
system immediately. It is forbidden to any person who is not the intended
receiver to use, distribute or copy any part of this message.
-------------------------------------------------------------------------
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
[email protected]
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