HI:
I am triying to get a PDF417 file image using itext
I write the following code:
try{
BarcodePDF417 pdf417 = new BarcodePDF417();
String msg =* "está áéíóúññññ ";*
pdf417.setText(msg);
Document document = new Document(PageSize.A4, 50, 50, 50, 50);
document.open();
Image img = pdf417.getImage();
img.scalePercent(50, 50 * pdf417.getYHeight());
document.add(img);
document.close();
Color foreground = new Color(0x0);
Color background = new Color(0xffffff);
java.awt.Image awtImage = pdf417.createAwtImage(foreground, background);
Utils.store(awtImage, "c:xx.jpg");
}
But when I read the PDF417 printed I get the following *est{a
{a{e{i{o{uññññ *
How can I send spanish characters.
Thanks In Advance
Viviana Rojas
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Many questions posted to this list can (and will) be answered with a reference
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php