开发者

TCPDF for setting margins

开发者 https://www.devze.com 2023-03-06 21:01 出处:网络
I am generating PDF file using TCPDF, when I try to use inbuilt functions for setting margin, i.e. $pdf->SetMargins(), it doesn\'t work. My main 开发者_JAVA百科purpose for it to remove extra space

I am generating PDF file using TCPDF, when I try to use inbuilt functions for setting margin, i.e. $pdf->SetMargins(), it doesn't work. My main 开发者_JAVA百科purpose for it to remove extra space for ul and li tags, because it is disturbing my pdf format and text content mixing into each other.

Any help would be appreciated.


Set margins is for the document itself and it will not affect the ul or lis on the document. You got to set the styling for those yourself. One tip is to do the styling all inline (just pretend that you building up a page for 1990).

0

精彩评论

暂无评论...
验证码 换一张
取 消