title: How to create pdf like a example using fpdf
body: <p>This is my PDF code below:</p>
  
  <pre><code>$this-&gt;SetFillColor(0);
  $this-&gt;SetTextColor(255,255,255);
  $this-&gt;Cell(90,10,$airline_name,'LRBT',0,'L',true);
  
  $this-&gt;Cell('10',10,'','',0,'L',false);
  
  $this-&gt;SetFillColor(255,255,255);
  $this-&gt;SetTextColor(0);
  $this-&gt;SetFont('Times','',10);
  
  $this-&gt;MultiCell(90,5,$com_info,1,'L',false);
  
  $this-&gt;Ln(0);
  
  $this-&gt;SetY(23);
  $this-&gt;Cell(30,10,"MAWB",'LTB',0,'L',false);
  $this-&gt;Cell(60,10,$mawb,'TRB',0,'L',false);
  $this-&gt;Cell(10,10,'','',0,'L',false);
  
  $this-&gt;Cell(45,20,'This Pieces No.\n$pn','LR',0,'L',false);
  $this-&gt;Cell(45,20,'Total Pieces\n$pn','R',0,'L',false);
  $this-&gt;ln(0);
  
  $this-&gt;SetY(36);
  $this-&gt;Cell(30,10,"Booking_ref",'LTB',0,'L',false);
  $this-&gt;Cell(60,10,$booking_ref,'TRB',0,'L',false);
  $this-&gt;Cell(10,10,'','',0,'L',false);
  
  $this-&gt;Cell(25,20,'HAWB','LTR',0,'L',false);
  $this-&gt;Cell(65,20,$quotation_no,'TR',0,'L',false);
  </code></pre>
  
  <p>According to above code, the PDF is as shown below:
  <strong>pdf image No.01</strong>
  <img src="https://i.stack.imgur.com/ACNN3.jpg" alt="enter image description here"></p>
  
  <p>Basically, I want to do display it as shown here:
  <strong>pdf image No.02</strong>
  <img src="https://i.stack.imgur.com/zbJrn.jpg" alt="enter image description here"></p>
  
  <p>In the PDF, the data will come from the database.</p>
  
  <p>I would like to display like <strong>pdf image No.02</strong> But i have done like <strong>pdf image No.01</strong>.</p>
  
  <p>How to get the pdf image like <strong>pdf image No.02</strong>.</p>
  
  <p>How can I solve it? Please help.</p>