Hi 

When I am using following code to display the page No.
in the footer(PDF)
It always starts with page No.2 and so on.
Could you please tell me know where I am doing wrong
in my code.

attached is the application generated PDF.

Thanks 

Pankaj
 


  HeaderFooter footer = new HeaderFooter(new
Phrase("PageNo-"),true);
               
header.setAlignment(com.lowagie.text.Element.ALIGN_CENTER);
               
footer.setAlignment(com.lowagie.text.Element.ALIGN_CENTER);
       
              
                doc.setHeader(header);       
                doc.setFooter(footer);         
                doc.open(); 

InputSource iSource = new InputSource(new
ByteArrayInputStream(byteArrayOut.toByteArray()));         
    
                HtmlParser.parse(doc, iSource);       
                doc.close();                    
               
responseStream.writeTo(response.getOutputStream());       
     
                response.getOutputStream().flush();     

Regards

Pankaj



                
__________________________________ 
Do you Yahoo!? 
Meet the all-new My Yahoo! - Try it today! 
http://my.yahoo.com 
 

Attachment: NewTabularStatement-244.pdf
Description: NewTabularStatement-244.pdf

Reply via email to