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
> iText-questions@lists.sourceforge.net
> 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
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to