title: How to add a page number to the output pdf when merging two pdfs?
body: <p>I am using the following code to merge two pdfs:</p>
  
  <pre><code>File firstPdfFile = new File("firstPdf.pdf"); 
  File secondPdfFile = new File("secondPdf.pdf"); 
  PDFMergerUtility merger = new PDFMergerUtility(); 
  merger.addSource(firstPdfFile);     
  merger.addSource(secondPdfFile); 
  String pdfPath = "PdfFile.pdf"; 
  OutputStream bout2 = new BufferedOutputStream(new FileOutputStream(pdfPath)); 
  merger.setDestinationStream(bout2); 
  merger.mergeDocuments();    
  File pdfFile = new File(pdfPath);
  </code></pre>
  
  <p>I am getting the merged pdf correctly but I want to add page number in this pdf file.</p>