【问题标题】:TCPDF - why margin-left not working?TCPDF - 为什么 margin-left 不起作用?
【发布时间】:2013-06-18 08:21:36
【问题描述】:

为什么在 TCPDF 库中左侧边距不起作用?我从 TCPDF 网站获得了示例:

http://www.tcpdf.org/examples/example_002.phps

并修改添加:

$pdf->SetMargins(0, 0, 0);
$pdf->SetLeftMargin(0);

但这不适用于左边距。 TOP 和 RIGHT 工作正常,但没有离开。为什么? 如何在 LeftMargin 上设置 0?

我有:

// File name   : tcpdf.php
// Version     : 6.0.020
// Begin       : 2002-08-03
// Last Update : 2013-06-04

【问题讨论】:

  • 边距设置为多少?

标签: php pdf tcpdf


【解决方案1】:

尝试将单元格填充设置为零。

$pdf->setCellPaddings(0,0,0,0);

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-04-08
    • 2017-07-03
    • 2015-08-15
    • 1970-01-01
    • 2015-09-04
    • 2023-03-31
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多