Hello,here is the code related to footer.And could you tell more detail about
how to use Page event instead of HeaderFooter?Could you give an example?
Code:
HeaderFooter footer = new HeaderFooter(new Phrase("页码:",
PdfConvertor.setTxtFont(ChineseFont,12)), true);
footer.setBorder(Rectangle.NO_BORDER);
> Date: Wed, 15 Jul 2009 08:48:48 +0200
> From: [email protected]
> To: [email protected]
> Subject: Re: [iText-questions] java.lang.NullPointerException at
> com.lowagie.text.pdf.PdfDocument.open(Unknown Source)
>
> 熊晨晖 wrote:
> > I got NullPointerException in the below code,and the exception message
> > is like this java.lang.NullPointerException at
> > com.lowagie.text.pdf.PdfDocument.open(Unknown Source),I don't know why
> > it is,can someone help me out of this trouble?
>
> Maybe footer is causing the NPE:
>
> > doc.setFooter(footer);
>
> We can't "reproduce" the problem if we don't know what you have in the
> footer object. Also: you shouldn't use HeaderFooter anymore. Use page
> events instead.
> --
> This answer is provided by 1T3XT BVBA
> http://www.1t3xt.com/ - http://www.1t3xt.info
>
> ------------------------------------------------------------------------------
> Enter the BlackBerry Developer Challenge
> This is your chance to win up to $100,000 in prizes! For a limited time,
> vendors submitting new applications to BlackBerry App World(TM) will have
> the opportunity to enter the BlackBerry Developer Challenge. See full prize
> details at: http://p.sf.net/sfu/Challenge
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> Buy the iText book: http://www.1t3xt.com/docs/book.php
> Check the site with examples before you ask questions:
> http://www.1t3xt.info/examples/
> You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
_________________________________________________________________
上Windows Live 中国首页,下载最新版Messenger!
http://www.windowslive.cn------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions:
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/