title: iTextSharp- putting phrase and table on a single line
body: <p>In itextsharp I'm generating a pdf featuring a table- inside this table is a row that should contain a text string, then another nested table. With the inner table having a border.</p>
  
  <pre><code>        Font nameFont = FontFactory.GetFont("Arial", 10);
          PdfPTable pdfpTable = new PdfPTable(1);
          pdfpTable.HorizontalAlignment = Element.ALIGN_LEFT;
          pdfpTable.WidthPercentage = 100f;
          pdfpTable.TotalWidth = 250f;
          pdfpTable.LockedWidth = true;
          PdfPCell pdfpCell;
  
          var vouchertable = new PdfPTable(11);
          vouchertable.TotalWidth = 100f;
          vouchertable.LockedWidth = true;
          var tableBorder = Rectangle.TOP_BORDER | Rectangle.RIGHT_BORDER | Rectangle.BOTTOM_BORDER | Rectangle.LEFT_BORDER;
          var code = "10162/00012";
          foreach (var s in code)
          {
              var vouchercell = new PdfPCell(new Paragraph(s.ToString(), nameFont));
              vouchercell.Border = tableBorder;
              vouchercell.HorizontalAlignment = Element.ALIGN_LEFT;
              vouchertable.AddCell(vouchercell);
          }
          vouchertable.HorizontalAlignment = Element.ALIGN_LEFT;
  
          var chunk = new Chunk("Referral Code: ", nameFont);
          pdfpCell = new PdfPCell();
          pdfpCell.AddElement(chunk);
          pdfpCell.AddElement(vouchertable);
          pdfpTable.AddCell(pdfpCell);
  </code></pre>
  
  <p>The 'Referral Code' chunk and the numbers in the boxes (which is an inner table) need to be on the same line, but I can't work out how to not add a newline.</p>
  
  <p><a href="https://i.stack.imgur.com/R8o0s.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/R8o0s.png" alt="output"></a><br>
  <sub>(source: <a href="http://oozamaflips.net/dev/images/293.PNG" rel="nofollow noreferrer">oozamaflips.net</a>)</sub>  </p>