Page 1 of 1

horizontal spacing using fpdf

Posted: Tue Sep 02, 2008 2:32 am
by junjustkim
Hi

Does anyone there familiar with fpdf. I use it to convert my form into pdf but the problem is using multicell. How can I control the horizontal spacing because it will generate a big space between one line to the next line of text. Any suggestion would greatly appreciated

thanks in advance

Re: horizontal spacing using fpdf

Posted: Tue Sep 02, 2008 12:24 pm
by ahowell
in your cell call:

Code: Select all

$pdf->Cell(20, 10, 'Title', 1, [color=#FF0000]1[/color], 'C');
...the value in red sets the current position after filling in the cell, if you have
a 1, it is the equivalent of entering 0, and calling ln() directly after.

You'll just need to explore the options of the methods your using to find
out how to achieve exactly what you want.