我如何将FPDF单元设置为右侧

时间:2017-04-25 06:55:32

标签: php fpdf

我有下表,它从左侧开始,但我需要从右侧开始这个表。

$pdf->Cell(30,10,'Address Line 1',1,0,'R'); 
//this code align text Right Side not the cell i need to move the cell on right sie
-------------------------  -------------------------
|  Address Line 1          |       Version         |
|  Address Line 2          |         1.0           |
|  City                    |       06/05/2011      | 
-------------------------  -------------------------

要求:

                                -------------------------  -------------------------
                                |  Address Line 1          |       Version         |
                                |  Address Line 2          |         1.0           |
                                |  City                    |       06/05/2011      | 
                                -------------------------  -------------------------

1 个答案:

答案 0 :(得分:1)

问题已解决。我申请了左边距

$pdf->SetLeftMargin(85);