Hi Deepa, 2009/5/7 Deepa Thakur <[email protected]>: > Hi, > I am generating pdf in java using itext. I want to display the different > headers on different pages. I'm using one single document and pages are > getting added to it at run time. I have got 5 servlets written to generate > the whole pdf. At start of every servlet i've written the code for header > the problem is when its get generated the header gets added to the one more > extra page. > to get clear idea i am including the eg below. > Eg 1-3 pages i want header1 to get display. > 4-7 pages I want header2 to get display. > 8-10 Pages I want header3 to get display > The actual output which i get is as follows. > 1-4 header1 > 5-8 header2 > 9-10 header3 > Please help me to resolve this issue. > Thanks.
I can't tell for sure without having a look at your code, but it looks like you set header2 (resp. header3) AFTER starting page 4 (resp. page 8). In such a case, this is normal behaviour and iText is doing as expected. To solve this, make sure you set the desired header BEFORE starting the page. HTH, alexis ------------------------------------------------------------------------------ The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com _______________________________________________ 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/
