horizontal spacing using fpdf

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
junjustkim
Forum Commoner
Posts: 44
Joined: Thu May 22, 2008 8:48 pm

horizontal spacing using fpdf

Post 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
ahowell
Forum Newbie
Posts: 17
Joined: Mon Sep 01, 2008 9:18 pm

Re: horizontal spacing using fpdf

Post 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.
Post Reply