Re: Question regarding PDF creation

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

 



Mário Gamito wrote:
...
> 
> $pdf->Cell(40,10,'CV de ' . $full_name . ',' . 0,0 . ',C');
> 

If I break down this argument to a simpler form, you are using:

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

You aren't supplying the last 3 arguments!  What I *think* you're going
for instead here is:

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

> The problem here is that the part ,0,1, is not stringed, while C is.
> So, what i get in the PDF is
> 
> Curriculum Vitae de Mário Gamito,0,0,C
> (Mário Gamito == $full_name)
> 
> So, how to "unparse" the ,0,1, in the middle of the instruction ?

Just don't include it as part of the string argument at all (the 3rd
argument).  Currently it looks like the 0,1 in the middle of the
instruction is just text that you are inserting into that cell location.

> 
> Any help would be apreciated.
> 
> 
> Warm Regards,
> Mário Gamito


-- 
Teach a man to fish...

NEW? | http://www.catb.org/~esr/faqs/smart-questions.html
STFA | http://marc.theaimsgroup.com/?l=php-general&w=2
STFM | http://php.net/manual/en/index.php
STFW | http://www.google.com/search?q=php
LAZY |
http://mycroft.mozdev.org/download.html?name=PHP&submitform=Find+search+plugins

Attachment: signature.asc
Description: OpenPGP digital signature


[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