如何在tcpdf中添加页脚

如何在tcpdf中添加页脚,pdf,footer,tcpdf,Pdf,Footer,Tcpdf,我正在使用tcpdf库生成pdf,我必须在页脚中添加一个右复制文本,但所有文本都打印在一行中,只有中间部分可见 $htmlbody="Copyright © 2014 XYZ. All rights reserved. Specifications subject to change" . " without notice. XYZ and the XYZ logo are trademarks or registered trademarks"

我正在使用tcpdf库生成pdf,我必须在页脚中添加一个右复制文本,但所有文本都打印在一行中,只有中间部分可见

$htmlbody="Copyright © 2014 XYZ. All rights reserved. Specifications subject to change"
                        . " without notice. XYZ and the XYZ logo are trademarks or registered trademarks"
                        . " of XYZ. All other trademarks used or mentioned herein belong to their respective owners";
        $this->Cell(100, 10, $htmlbody , 0, false, 'C', 0, '', 0, false, 'T', 'M');
生成的pdf如下所示

对于多行文本,您可以使用

$this->MultiCell(100, 0, $htmlbody."\n", 0, 'C');