RE: Question regarding PDF creation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Mário Gamito <mailto:lists@xxxxxxxxxxx>
    on Monday, April 18, 2005 3:01 AM said:

> I'm using FPDF (http://www.fpdf.org/) to create a... PDF.

First of all thanks for asking this question because I was in need of building PDFs and lo and behold FPDF works great so far!

> $pdf->Cell(60,10,'Powered by FPDF.',0,1,'C');

> $pdf->Cell(40,10,'CV de ' . $full_name . ',' . 0,0 . ',C');
> 
> The problem here is that the part ,0,1, is not stringed, while C is.
> So, what i get in the PDF is

I haven't messed around with this package at all yet (I am currently going through the tutorials) but what I notice is that your quotes are messed up (I think).

Notice that in the first example it is: ,0,1,'C');

Your example is: 0,0 . ',C');

I think it should be: 0,0,'C');

So I would write your line as:

$pdf->Cell(40,10,"CV de $full_name ",0,0,'C');


HTH,
Chris.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux