Muhammad Kazim
Muhammad Kazim

Reputation: 621

How I set the FPDF Cell to Right Side

I have following table, it starts from left side but i need this table to start from right side.

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

requirement:

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

Upvotes: 1

Views: 2077

Answers (1)

Muhammad Kazim
Muhammad Kazim

Reputation: 621

issue resolved. I applied the left Margin

$pdf->SetLeftMargin(85);

Upvotes: 1

Related Questions