Found the help I needed on the iText site
created an Event class implementing the PdfPageEvent intf
then passed it to my writer.setPageEvent(myEventCls);
Everything works now.
Thanks for the reply
-------------- Original message --------------
From: mister bean <[EMAIL PROTECTED]>
>
> Did you use
>
> iTWriter.setPageEvent( new OnPageEnd() );
>
> somewhere before the pageEvent is first triggered?
>
> If not, iText has no idea that you've created this event.
>
> ---mr.bean
>
>
> jlopes151 wrote:
> >
> > Ok I created a class extended it with PdfPageEventHelper put a Println in
> > the onEndPage method
> > and nothing printed.
> >
> > public class MyClass extends PdfPageEventHelper{
> > ...... code to produce a pdf works with out error .....
> > .... after a number of rows I execute newPage() ....
> > public void onEndPage(PdfWriter writer, Document doc){
> > System.out.println("Some text");
> > }
> >
> > }
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by: Microsoft
> > Defy all challenges. Microsoft(R) Visual Studio 2008.
> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> > _______________________________________________
> > iText-questions mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/itext-questions
> > Buy the iText book: http://itext.ugent.be/itext-in-action/
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Having-trouble-with-Events-tp15580349p15580494.html
> Sent from the iText - General mailing list archive at Nabble.com.
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> Buy the iText book: http://itext.ugent.be/itext-in-action/ -------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/