Hi All,

I am facing a very weird problem. I have code to add image to the header
which i write in the method onEndPage by extending PdfPageEventHelper to my
class.

public void onEndPage(PdfWriter writer, Document document) {
try{
document.add(img);
}catch(DocumentException de){
de.printStackTrace();
}catch(Exception e){
e.printStackTrace();
}
    }

My report doesnt generate and neither i find any exception in my logs.

One more thing i noticed is, if i give a SOP at the beginning and at the
end of the method, at some point of time, onEndPage method is called
multiple times but doesnt print the SOP which is at the end and
continuously prints only the begin SOP.

What could the actual problem be?

Thank you,
Harsha
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122412
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to