Why is there a left and top padding in a cell using TCPDF in php?

后端 未结 2 1957
不知归路
不知归路 2021-01-04 18:40

I am printing a cell using the TCPDF(http://www.tcdf.org/) class in php. The cell should be placed into the top left corner.

Everything works great, except that a le

相关标签:
2条回答
  • 2021-01-04 19:04

    If I'm not mistaken, that it is not padding, but space for letters which extend below the baseline (e.g. "g"), accents, subscripts and superscripts.

    I tried your code with some accented letters in the text. This is the result: tcpdf test

    Relevant:
    - Baseline (typography)
    - Subscript & Superscript

    0 讨论(0)
  • 2021-01-04 19:25

    On an additional note, you can decrease the height of the cell by passing TRUE for the ignoreMinHeight parameter in the Cell function.

    0 讨论(0)
提交回复
热议问题