This is already fixed in my version. Download it from itextpdf.sf.net.

Best Regards,
Paulo Soares

> -----Original Message-----
> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]
> Sent: Friday, September 12, 2003 0:35
> To:   [EMAIL PROTECTED]
> Subject:      RE: [iText-questions] wrong fontname generated at embedding
> text
> 
> I used getOverContent(), however, I got the same result at closing
> stamper.
> 
> java.lang.ClassCastException
>         at com.lowagie.text.pdf.PdfResources.add(Unknown Source)
>         at com.lowagie.text.pdf.PageResources.getResources(Unknown Source)
>         at com.lowagie.text.pdf.PdfStamperImp.alterResources(Unknown
> Source)
>         at com.lowagie.text.pdf.PdfStamperImp.alterContents(Unknown
> Source)
>         at com.lowagie.text.pdf.PdfStamperImp.close(Unknown Source)
>         at com.lowagie.text.pdf.PdfStamper.close(Unknown Source)
>         at stamper.main(stamper.java:22)
> 
> best regards.
> 
> > -----Original Message-----
> > From: Paulo Soares [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, September 11, 2003 11:49 PM
> > To: '??'; [EMAIL PROTECTED]
> > Subject: RE: [iText-questions] wrong fontname generated at embedding
> > text
> >
> >
> > Use getOverContent() instead of getUnderContent(). Your pdf has a
> > big white
> > rectangle that covers the page and anything you write under it.
> > (Don't post files this big in the list. Put them in the web and post
> just
> > the address)
> >
> > Best Regards,
> > Paulo Soares
> >
> > > -----Original Message-----
> > > From:     [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]
> > > Sent:     Thursday, September 11, 2003 12:47
> > > To:       [EMAIL PROTECTED]
> > > Subject:  RE: [iText-questions] wrong fontname generated at embedding
> > > text
> > >
> > > Hi alls, and paulo.
> > >
> > > I have another problem at embedding text with paticular PDFs.
> > > Please examine the attached file.
> > > The PDFs, which is generated by Acrobat PDFWriter 4.0 for Windows,
> seems
> > > to
> > > cause the problem.
> > >
> > > best regards.
> > >
> > > > -----Original Message-----
> > > > From: Paulo Soares [mailto:[EMAIL PROTECTED]
> > > > Sent: Wednesday, September 10, 2003 7:15 PM
> > > > To: '??'; [EMAIL PROTECTED]
> > > > Subject: RE: [iText-questions] wrong fontname generated at embedding
> > > > text
> > > >
> > > >
> > > > iText does the right thing. If you want explanations read the PDF
> > > > reference
> > > > in the fonts chapter.
> > > > Your particular problem is that your document was generated for
> > > > Acrobat 3.0
> > > > and this version does not support TrueType fonts with
> > Identity-H. If you
> > > > change the encoding to winansi it will work. If you want it to work
> > > > regardless of the original pdf version use:
> > > >
> > > > PdfStamper stamper = new PdfStamper(originalPDF, os,
> > > > PdfWriter.VERSION_1_4);
> > > >
> > > > to bump up the version.
> > > >
> > > > Best Regards,
> > > > Paulo Soares
> > > >
> > > > > -----Original Message-----
> > > > > From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]
> > > > > Sent: Wednesday, September 10, 2003 10:59
> > > > > To:   Paulo Soares; [EMAIL PROTECTED]
> > > > > Subject:      RE: [iText-questions] wrong fontname
> > generated at embedding
> > > > > text
> > > > >
> > > > > My question is:
> > > > >
> > > > > 1. Why the prefix of the font name is randomly generated?
> > > > > 2. or, why itext generates random prefix, which must not be
> > > neccessary.
> > > > >
> > > > > I embedded texts with the comic font, not with randomly
> > > > generated prefix +
> > > > > comic font.
> > > > >
> > > > > > -----Original Message-----
> > > > > > From: Paulo Soares [mailto:[EMAIL PROTECTED]
> > > > > > Sent: Wednesday, September 10, 2003 6:51 PM
> > > > > > To: '??'; [EMAIL PROTECTED]
> > > > > > Subject: RE: [iText-questions] wrong fontname generated
> > at embedding
> > > > > > text
> > > > > >
> > > > > >
> > > > > > Doesn't it work? The subset prefix (the AEGVPX+ part) is
> randomly
> > > > > > generated
> > > > > > as it should otherwise you wouldn't be able to insert pages
> > > > in Acrobat.
> > > > > >
> > > > > > Best Regards,
> > > > > > Paulo Soares
> > > > > >
> > > > > > > -----Original Message-----
> > > > > > > From:     [EMAIL PROTECTED]
> > [SMTP:[EMAIL PROTECTED]
> > > > > > > Sent:     Wednesday, September 10, 2003 10:02
> > > > > > > To:       [EMAIL PROTECTED]
> > > > > > > Subject:  [iText-questions] wrong fontname generated
> > > > at embedding text
> > > > > > >
> > > > > > > Some PDFs cannot be dealed with itext-1.00.
> > > > > > >
> > > > > > > Attached stamper.java is a simple program to embed text into
> an
> > > > > existing
> > > > > > > PDF.
> > > > > > > If attached test0910.pdf is processed by the program, the
> > > > > > embedded text is
> > > > > > > rendered by
> > > > > > > AEGVPX+ComicSansMS font.
> > > > > > >
> > > > > > > The part 'AEGVPX+' is differ from processing to processing.
> > > > > > > This may be a bug of itext.
> > > > > > >
> > > > > > > best regards.
> > > > > > >
> > > > > > > --
> > > > > > > Tamakoshi Hiroki, Planet Computer, Inc.
> > > > > > > ?? ??    (?)???????????
> > > > > > > ?113-0033?????????4-2-5?MA??5F(??????)
> > > > > > > TEL:03-5840-6233  FAX:03-5840-6234
> > > > > > > ?411-0046??????????1??6?22?(??)
> > > > > > > TEL:0559-99-0133  FAX:0559-99-0122
> > > > > > > mailto:[EMAIL PROTECTED], http://www.planetcomp.com/ <<
> > > File:
> > > > > > > stamper.java >>  << File: test0910.pdf >> << File:
> > stamper.java >>
> > > << File: 270580448_11504625.pdf >>
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to