0

I have a small problem in the following code

<?php
require('fpdf17/fpdf.php');

//A4 width : 219mm
//default margin : 10mm each side
//writable horizontal : 219-(10*2)=189mm

$pdf = new FPDF('P','mm','A4');

$pdf->AddPage();

//set font to arial, bold, 14pt
$pdf->SetFont('Arial','B',14);

//Cell(width , height , text , border , end line , [align] )

$pdf->Cell(200  ,5,'National Remote Sensing Center',1,1,'C');
$pdf->Cell(50  ,5,'Flight REquisition Form',1,1,'C');

I have a title and a sub title . But i need some line height between them. can anyone tell the code for line height adjustment? Thanks in advance.

1 Answers1

1

Can you not just use the second paramter of the Cell() method... height?

Cell(float w [, float h [, string txt [, mixed border [, int ln [, string align [, boolean fill [, mixed link]]]]]]])

h

Cell height. Default value: 0.

from http://www.fpdf.org/ > Manual > Cell()

rebusB
  • 518
  • 5
  • 19