title: Setting page number in pdf generate using dataExporter(primefaces)
body: <pre><code>&lt;p:dataExporter type="pdf" target="callRpt"preProcessor="#{pc_CallReportBean.preProcessPDF}"
          fileName="#{reportLbl['callReport.callsReportFileName']}" /&gt;
  
  public void preProcessPDF(Object document) throws IOException, BadElementException, DocumentException 
  {  
      Document pdf = (Document) document;  
      pdf.open();  
      pdf.setPageSize(PageSize.A4);  
  
      ServletContext servletContext = (ServletContext)FacesContext.
                 getCurrentInstance().getExternalContext().getContext();  
      String logo = servletContext.getRealPath("") + File.separator + "images" + File.separator + "prime_logo.png";  
  
      pdf.add(Image.getInstance(logo));  
  } 
  </code></pre>
  
  <p>in above code we export our table in pdf format using primefaces's tag 
  and i set the logo in front page.</p>
  
  <p>How can i set page-number,header,and footer using p:dataExporter ?</p>
  
  <p>And also want to set table headings in every page if more than 1 pages are generate ?</p>