iText does the right thing. If you want explanations read the PDF reference
(Bin the fonts chapter.
(BYour particular problem is that your document was generated for Acrobat 3.0
(Band this version does not support TrueType fonts with Identity-H. If you
(Bchange the encoding to winansi it will work. If you want it to work
(Bregardless of the original pdf version use:
(B
(BPdfStamper stamper = new PdfStamper(originalPDF, os, PdfWriter.VERSION_1_4);
(B
(Bto bump up the version.
(B
(BBest Regards,
(BPaulo Soares
(B
(B> -----Original Message-----
(B> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]
(B> Sent: Wednesday, September 10, 2003 10:59
(B> To: Paulo Soares; [EMAIL PROTECTED]
(B> Subject: RE: [iText-questions] wrong fontname generated at embedding
(B> text
(B>
(B> My question is:
(B>
(B> 1. Why the prefix of the font name is randomly generated?
(B> 2. or, why itext generates random prefix, which must not be neccessary.
(B>
(B> I embedded texts with the comic font, not with randomly generated prefix +
(B> comic font.
(B>
(B> > -----Original Message-----
(B> > From: Paulo Soares [mailto:[EMAIL PROTECTED]
(B> > Sent: Wednesday, September 10, 2003 6:51 PM
(B> > To: '??'; [EMAIL PROTECTED]
(B> > Subject: RE: [iText-questions] wrong fontname generated at embedding
(B> > text
(B> >
(B> >
(B> > Doesn't it work? The subset prefix (the AEGVPX+ part) is randomly
(B> > generated
(B> > as it should otherwise you wouldn't be able to insert pages in Acrobat.
(B> >
(B> > Best Regards,
(B> > Paulo Soares
(B> >
(B> > > -----Original Message-----
(B> > > From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]
(B> > > Sent: Wednesday, September 10, 2003 10:02
(B> > > To: [EMAIL PROTECTED]
(B> > > Subject: [iText-questions] wrong fontname generated at embedding text
(B> > >
(B> > > Some PDFs cannot be dealed with itext-1.00.
(B> > >
(B> > > Attached stamper.java is a simple program to embed text into an
(B> existing
(B> > > PDF.
(B> > > If attached test0910.pdf is processed by the program, the
(B> > embedded text is
(B> > > rendered by
(B> > > AEGVPX+ComicSansMS font.
(B> > >
(B> > > The part 'AEGVPX+' is differ from processing to processing.
(B> > > This may be a bug of itext.
(B> > >
(B> > > best regards.
(B> > >
(B> > > --
(B> > > Tamakoshi Hiroki, Planet Computer, Inc.
(B> > > $B6L1[(J $BBg51(J $B!J3t!K%W%i%M%C%H%3%s%T%e!<%?(J
(B> > > $B")(J113-0033$B!!El5~ETJ85~6hK\6?(J4-2-5$B!!(JMA$B%S%k(J5F$B!JEl5~%*%U%#%9!K(J
(B> > > TEL:03-5840-6233 FAX:03-5840-6234
(B> > > $B")([EMAIL PROTECTED],8);0Eg;TIgMVBf#1CzL\#6HV#2#29f!JK\mailto:[EMAIL PROTECTED], http://www.planetcomp.com/ << File:
(B> > > stamper.java >> << File: test0910.pdf >>
(B
(B
(B-------------------------------------------------------
(BThis sf.net email is sponsored by:ThinkGeek
(BWelcome to geek heaven.
(Bhttp://thinkgeek.com/sf
(B_______________________________________________
(BiText-questions mailing list
(B[EMAIL PROTECTED]
(Bhttps://lists.sourceforge.net/lists/listinfo/itext-questions