[EMAIL PROTECTED] wrote:
Hello,
I have a problem with itext-1.3.6. I need to use it for generate pdf file with
diacritic's signs in Java. But when I create some pdf file with diacritic's
signs, the result is the pdf file without each letter with diacitic, especially
wedges. I would like to ask you for help. Can I change the language coding or
something else for make it right? Please help.
What font are you using? (Helvetica doesn't have those characters)
What encoding are you using?
How are you creating the Font or BaseFont object?
What you call a wedge is a caron or hacek.
In my book I have movie titles of different countries
that demonstrate how to use different encodings.
For instance:
document.add(new Paragraph("Movie title: No Man's Land
(Bosnia-Herzegovina)"));
document.add(new Paragraph("Directed by Danis Tanovic"));
bf = BaseFont.createFont("c:/windows/fonts/arialbd.ttf", "Cp1250",
BaseFont.EMBEDDED);
document.add(new Paragraph("Encoding: " + bf.getEncoding()));
font = new Font(bf, 12);
byte[] noMansLand = { 'N', 'i', 'k', 'o', 'g', 'a', 'r', (byte) 0x9A,
'n', 'j', 'a', ' ', 'z', 'e', 'm', 'l', 'j', 'a' };
document.add(new Paragraph(new String(noMansLand), font));
br,
Bruno
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions