TCPDF list item margin

瘦欲@ 提交于 2019-12-05 19:57:31

tcpdf allows to define the vertical spaces for HTML tags, see Method setHtmlVSpace of TCPDF Class Documentation, use:

$pdf->setHtmlVSpace(array(
    'li' => array(
        'h' => 5, // margin in mm
    ) 
));

The name of the html-Element is the key (li) and h specifies the vertical space

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!