Am Freitag, den 31.03.2006, 10:52 +0200 schrieb Volker Jordan:
> Am Donnerstag, den 30.03.2006, 18:17 +0100 schrieb Paulo Soares:
> >  
> > > -----Original Message-----
> > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> > > Sent: Thursday, March 30, 2006 6:00 PM
> > > To: Paulo Soares
> > > Cc: [email protected]
> > > Subject: RE: [iText-questions] Using Unicode Fields with Unicode Fonts
> > > 
> > > Am Donnerstag, den 30.03.2006, 15:19 +0100 schrieb Paulo Soares:
> > > > This is an example of Acrobat not following their own 
> > > specifications. Your embedded font uses what is called 
> > > "StandardEncoding" and in this encoding the char "ü" is not 
> > > defined. Acrobat doesn't care and puts the char anyway 
> > > probably checking the actual embedded font.The simplest way 
> > > to fix this:
> > > > 
> > > > PdfReader pdf = new PdfReader("C:\\VorlageOnline.pdf");
> > > > PdfStamper stp = new PdfStamper(pdf, new 
> > > FileOutputStream("c:\\out.pdf"));
> > > > AcroFields af = stp.getAcroFields();
> > > > BaseFont bf = 
> > > BaseFont.createFont("c:\\windows\\fonts\\l_10646.ttf", 
> > > BaseFont.IDENTITY_H, true);
> > > > af.addSubstitutionFont(bf);
> > > > af.setField("field1","This is a Test Müller");
> > > > stp.close();
> > > > 
> > > > Paulo
> > > > 
> > > 
> > > hey Paulo, you are the greatest. Thanks for the solution.
> > > 
> > > The only thing what doesnt work is the german sharp s at 
> > > \u00df. I will
> > > try to figure out why this is so, or do you have a answer to this
> > > question ?
> > > 
> > 
> > It's the same problem. It's funny that forms created with Acrobat 6 and 7 
> > don't have this problem.
> > 
> > Paulo
> > 
> Hi Paulo,
> 
> my tests with Acrobat 5 and 6 dont make any difference. My problem with
> the german sharp s still exists in both versions. 
> The only thing, what is different to the german umlaute problem is, that
> instead of showing a blank there is another letter regardless of setting
> the addSubstitutionFont. Am I right, that the reader does find the char
> ß but replaces it with a wrong char ? 
> 
> Volker 
>
ok,  I reencoded the font itself and now it works. I havent figured out
why the original opentype font doesnt work, but I will try to find out
why.

Volker




-------------------------------------------------------
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&kid0944&bid$1720&dat1642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to