title: Itextpdf adding a caption under an image
body: <p>Is it possible in the same cell to add an image and it's caption ?</p>
  <p>I've tried with a paragraph but with no luck.</p>
  <pre><code>            Image img = null;
              try {
                  img = Image.getInstance(Base64.decode(val));
              } catch (Exception e) {
                  throw new Exception(&quot;Problem in decoding image&quot;);
              }
  
              Paragraph paragraph = new Paragraph(&quot;this is a Caption&quot;);
              valueCell.setImage(img);
              valueCell.addElement(paragraph);
  </code></pre>
  <p>Create a subtable with two cell, one with the image and the other one with the caption I think Is gonna mess with some logic used in this table that is composed of key/value pair cells.</p>