title: How to add URL to PDF document using iText?
body: <p>I have implemented a generic method to create PDFPCell and it is fine for text fields.
  Here I am looking for some code which can help me to add url (hot links).
  Thanks in advance.</p>
  
  <pre><code>public PdfPCell createCell(String text, Font font, BaseColor bColor, int rowSpan, int colSpan, int hAlign, int vAlign) {
      PdfPCell cell = new PdfPCell(new Phrase(text, font));
      cell.setBackgroundColor(bColor);
      cell.setRowspan(rowSpan);
      cell.setColspan(colSpan);
      cell.setHorizontalAlignment(hAlign);
      cell.setVerticalAlignment(hAlign);
      cell.setMinimumHeight(20);
      cell.setNoWrap(true);
      return cell;
  }
  </code></pre>