Problem at OnEndPage Tweaked an example code and it's not working anymore
- From: "Bruno Lowagie (iText)" <bruno (at) lowagie.com>
- Date: Fri, 27 Oct 2006 10:19:23 +0200
Nilabhra Banerjee wrote:
> Hi Everybody,
>
> This is in continuation of my earlier mail.
I must have missed your earlier mail, but when I look at
the code below, I see you are creating a new EndPage()
object over and over again. Why?
I think you want a header with a different String for
every different customer. Why don't you declare this
String as a membervariable, and change it when needed.
Here is a similar example from Chapter 14:
http://itext.ugent.be/itext-in-action/examples/chapter14/SlideShow.java
The page transition and duration are added using a page event.
However, while we are creating the document, we change the
value of the transition and duration.
> for(count = 0; count < 2; count++){
> document.newPage();
> }
Note that document.newPage() doesn't do anything
if no content was added. This is also explained in Chapter 14:
http://itext.ugent.be/itext-in-action/examples/chapter14/EmptyPages.java
br,
Bruno
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
iText-questions (at) lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions