31,003
edits
| Line 55: | Line 55: | ||
* If logo is on or outside existing text, remove exisiting text by commenting the code that output the text or by changing its position. | * If logo is on or outside existing text, remove exisiting text by commenting the code that output the text or by changing its position. | ||
== | == Add text into PDF == | ||
Most comme function to use | |||
<source lang="php"> | <source lang="php"> | ||
$pdf->setX(float a); // | $pdf->setX(float a); // set current x position | ||
$pdf->setY(float b); // | $pdf->setY(float b); // set current y position | ||
$pdf->setXY(float a,float b); // fixe les positions x et y courantes | $pdf->setXY(float a,float b); // fixe les positions x et y courantes | ||
$pdf->SetTextColor(0,0,200); // fixe la couleur du texte | $pdf->SetTextColor(0,0,200); // fixe la couleur du texte | ||
| Line 65: | Line 65: | ||
$pdf->MultiCell(60, 8, 'Mon texte", 0, 'L'); // imprime 'Mon texte' avec saut de ligne | $pdf->MultiCell(60, 8, 'Mon texte", 0, 'L'); // imprime 'Mon texte' avec saut de ligne | ||
</source> | </source> | ||
Note: Origin for setXY functions are the top left corner of page. | |||
== More information == | == More information == | ||