You are here: Question regarding PDF creation « PHP « IT news, forums, messages
Question regarding PDF creation

Posted by Mαrio Gamito on 04/18/05 13:01

Hi,

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

I'm trying to use a variable inside an instruction, but i'm getting
errors or malformed PDFs and i can't figure how to overcome them.

This instruction

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

inserts a line in the PDF, starting in coordinates 60,10 of the sheet,
without border (0), breaking to the next line (1) and centered (C).

Now, i want to use this with a variable:

$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

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 ?

Any help would be apreciated.


Warm Regards,
MΓ‘rio Gamito

 

Navigation:

[Reply to this message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация