おそらく遭遇しているのは、テキスト行の実際の高さです。内部的に、TCPDF はセルの高さの比率を使用して、レンダリングされる行の高さを制御します。テキストが 1 行の TD の場合、作成できる最小値は行全体の高さです。したがって、td
セルの最小サイズはfontsize * cellheightratio + any cellpadding proscribed
cellpadding はcellpadding
属性から取得できるため、この例では 0 に設定します。setCellPaddings
HTML を記述する前に、パディングのサイズの少なくとも一部を設定することもできると思います。
line-height
CSS 宣言を使用して行を小さくすることにより、セルの高さの比率を設定できます。(もちろん、フォントサイズを小さくすることもできます。)
<?php
//For demonstration purposes, set line-height to be double the font size.
//You probably DON'T want to include this line unless you need really spaced
//out lines.
$this->setCellHeightRatio(2);
//Note that TCPDF will display whitespace from the beginning and ending
//of TD cells, at least as of version 5.9.206, so I removed it.
$html = <<<EOD
<table style="border:1px solid black;" border="1" cellpadding="0">
<tr>
<td>Row 1, Cell 1</td>
<td>Row 1, Cell 2</td>
</tr>
<tr style="line-height: 100%;">
<td>Row 2, Cell 1</td>
<td>Row 2, Cell 2</td>
</tr>
<tr style="line-height: 80%;">
<td>Row 3, Cell 1</td>
<td>Row 3, Cell 2</td>
</tr>
<tr style="line-height: 50%;">
<td>Row 4, Cell 1</td>
<td>Row 4, Cell 2</td>
</tr>
</table>
EOD;
$this->writeHTMLCell($w=0, $h=0, $x='', $y='', $html, $border=0, $ln=1, $fill=0, $reseth=true, $align='', $autopadding=true);
5.9.206 インストールで上記のコードを実行すると、次のようになります。

これにより、行 1 が大きくなり、フォント サイズが 2 倍になります。行 2 は、行の高さをフォント サイズの 100% に設定します。行 3 は 80% です。行 4 は 50% です。
*テキストが折り返されている場合、行の高さを非常に低くすると見栄えが悪くなります。