title: Is it possible to create a cell inside an HTML table with TCPDF?
body: <p>I'm actually writing a templating tool that will be able to read a test / quiz written inside a properly-formatted text file and then render it on both paper (by generating a PDF file) and for the web (by creating HTML + CSS + JS). To generate PDF files I have chosen TCPDF, but I'm actually having a problem: Sometimes I'd like to create tables and put checkboxes and textboxes inside of them, just like as you can see in this <em>mock-up image</em>:</p>
  
  <p><img src="https://i.stack.imgur.com/ttJMF.png" alt="This is a representation of my problem"></p>
  
  <p>If I were to do it in HTML I would simply create some  or  tags and apply a border on them by using the related CSS property, for example by writing something like this:</p>
  
  <pre><code>&lt;style&gt;
      .dashed {
          border: 2px dashed gray;
          padding-left: 1em;
          padding-right: 1em;
          font-family: monospace;
      }
      .solid {
          border: 2px solid gray;
          padding-left: .75em;
          padding-right: .75em;
          margin-left: 1em;
          margin-right: .5em;
          font-family: monospace;
      }
      .solid:first-child {
          margin-left: 0;
      }
  &lt;/style&gt;
  
  &lt;table border="2" cellpadding="12" cellspacing="0"&gt;
      &lt;tr&gt;
          &lt;td&gt;What does 1 + 1 ?&lt;/td&gt;
          &lt;td&gt;&lt;span class="dashed"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;What does 2 + 2 ?&lt;/td&gt;
          &lt;td&gt;
              &lt;span class="solid"&gt;A&lt;/span&gt;
              One
              &lt;span class="solid"&gt;B&lt;/span&gt;
              Two
              &lt;span class="solid"&gt;C&lt;/span&gt;
              Three
              &lt;span class="solid"&gt;D&lt;/span&gt;
              Four
          &lt;/td&gt;
      &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>(I'm actually using inline CSS for explanation purposes, I don't usually apply CSS styles this way) </p>
  
  <p><strong>Unfortunately, if I'm not mistaken, TCPDF doesn't support CSS Borders</strong> - so I'm feeling a little bit lost. Would you give me some hints and your opinion about what I could do in order to achieve the same result?</p>
  
  <p>Many thanks in advance</p>