I used getOverContent(), however, I got the same result at closing stamper.
(B
(Bjava.lang.ClassCastException
(B        at com.lowagie.text.pdf.PdfResources.add(Unknown Source)
(B        at com.lowagie.text.pdf.PageResources.getResources(Unknown Source)
(B        at com.lowagie.text.pdf.PdfStamperImp.alterResources(Unknown Source)
(B        at com.lowagie.text.pdf.PdfStamperImp.alterContents(Unknown Source)
(B        at com.lowagie.text.pdf.PdfStamperImp.close(Unknown Source)
(B        at com.lowagie.text.pdf.PdfStamper.close(Unknown Source)
(B        at stamper.main(stamper.java:22)
(B
(Bbest regards.
(B
(B> -----Original Message-----
(B> From: Paulo Soares [mailto:[EMAIL PROTECTED]
(B> Sent: Thursday, September 11, 2003 11:49 PM
(B> To: '??'; [EMAIL PROTECTED]
(B> Subject: RE: [iText-questions] wrong fontname generated at embedding
(B> text
(B>
(B>
(B> Use getOverContent() instead of getUnderContent(). Your pdf has a
(B> big white
(B> rectangle that covers the page and anything you write under it.
(B> (Don't post files this big in the list. Put them in the web and post just
(B> the address)
(B>
(B> Best Regards,
(B> Paulo Soares
(B>
(B> > -----Original Message-----
(B> > From:       [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]
(B> > Sent:       Thursday, September 11, 2003 12:47
(B> > To: [EMAIL PROTECTED]
(B> > Subject:    RE: [iText-questions] wrong fontname generated at embedding
(B> > text
(B> >
(B> > Hi alls, and paulo.
(B> >
(B> > I have another problem at embedding text with paticular PDFs.
(B> > Please examine the attached file.
(B> > The PDFs, which is generated by Acrobat PDFWriter 4.0 for Windows, seems
(B> > to
(B> > cause the problem.
(B> >
(B> > best regards.
(B> >
(B> > > -----Original Message-----
(B> > > From: Paulo Soares [mailto:[EMAIL PROTECTED]
(B> > > Sent: Wednesday, September 10, 2003 7:15 PM
(B> > > To: '??'; [EMAIL PROTECTED]
(B> > > Subject: RE: [iText-questions] wrong fontname generated at embedding
(B> > > text
(B> > >
(B> > >
(B> > > iText does the right thing. If you want explanations read the PDF
(B> > > reference
(B> > > in the fonts chapter.
(B> > > Your particular problem is that your document was generated for
(B> > > Acrobat 3.0
(B> > > and this version does not support TrueType fonts with
(B> Identity-H. If you
(B> > > change the encoding to winansi it will work. If you want it to work
(B> > > regardless of the original pdf version use:
(B> > >
(B> > > PdfStamper stamper = new PdfStamper(originalPDF, os,
(B> > > PdfWriter.VERSION_1_4);
(B> > >
(B> > > to bump up the version.
(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:59
(B> > > > To:     Paulo Soares; [EMAIL PROTECTED]
(B> > > > Subject:        RE: [iText-questions] wrong fontname
(B> 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
(B> > neccessary.
(B> > > >
(B> > > > I embedded texts with the comic font, not with randomly
(B> > > 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
(B> 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
(B> > > in Acrobat.
(B> > > > >
(B> > > > > Best Regards,
(B> > > > > Paulo Soares
(B> > > > >
(B> > > > > > -----Original Message-----
(B> > > > > > From:       [EMAIL PROTECTED]
(B> [SMTP:[EMAIL PROTECTED]
(B> > > > > > Sent:       Wednesday, September 10, 2003 10:02
(B> > > > > > To: [EMAIL PROTECTED]
(B> > > > > > Subject:    [iText-questions] wrong fontname generated
(B> > > 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[(B $BBg51(B    $B!J3t!K%W%i%M%C%H%3%s%T%e!<%?(B
(B> > > > > > $B")(B113-0033$B!!El5~ETJ85~6hK\6?(B4-2-5$B!!(BMA$B%S%k(B5F$B!JEl5~%*%U%#%9!K(B
(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/ <<
(B> > File:
(B> > > > > > stamper.java >>  << File: test0910.pdf >> << File:
(B> stamper.java >>
(B> > << File: 270580448_11504625.pdf >>
(B
(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

Reply via email to