【问题标题】:How I set the FPDF Cell to Right Side我如何将 FPDF 单元格设置为右侧
【发布时间】:2017-09-22 01:19:00
【问题描述】:

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

$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      | 
                                -------------------------  -------------------------

【问题讨论】:

标签: php fpdf


【解决方案1】:

问题已解决。我应用了左边距

$pdf->SetLeftMargin(85);

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-07-12
    • 1970-01-01
    • 2017-12-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多