17

I haven't found a way to control linespacing in TCPDF's MultiCell as of version 5.9. Nor have I found any method that helps to mimic the same behaviour by using Cell, such as some method that returns the portion of the text that doesn't fit inside a Cell's width.

Any ideas?

I wish I could switch to FPDF (which I prefer), but I can't.

Carles Andres
  • 1,761
  • 1
  • 15
  • 22

1 Answers1

57
$pdf->setCellHeightRatio(0.8);

in TCPDF source code documentation:

* Set the height of the cell (line height) respect the font height.
     * @param $h (int) cell proportion respect font height (typical value = 1.25).
     * @public
     * @since 3.0.014 (2008-06-04)
KostaPC
  • 614
  • 6
  • 2