Hello,I replace the PdfDocument with Document,and i don't get the exception
again.Thank you for your advice all the same!
Why I want to use PdfDocument is that it has a getVerticalPosition()
method,and I wanna get the position of the current page.Then i find PdfWriter
also has the method,so it is not necessary for me to use PdfDocument.As to the
exception,I will try your advice later on.
> Date: Wed, 15 Jul 2009 09:27:05 +0200
> From: [email protected]
> To: [email protected]
> Subject: Re: [iText-questions] java.lang.NullPointerException at
> com.lowagie.text.pdf.PdfDocument.open(Unknown Source)
>
> 熊晨晖 wrote:
> > Hello,here is the code related to footer.And could you tell more
> > detail about how to use Page event instead of HeaderFooter?
>
> That's explained in chapter 14 of the book "iText in Action".
> If you don't have the book, go to the keywords page:
> http://1t3xt.info/tutorials/keywords/index.php
> Search for Headers/Footers: http://1t3xt.be/?X000696
>
> >Could you give an example?
>
> First remove the line with setFooter and tell us if the problem persists.
> --
> 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/
_________________________________________________________________
打工,挣钱,买房子,快来MClub一起”金屋藏娇”!
http://club.msn.cn/?from=10
------------------------------------------------------------------------------
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/