Create a PDF document template: Difference between revisions

Jump to navigation Jump to search
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.


== Modification des constantes affichées ==
== Add text into PDF ==
Principales fonctions utilisées
Most comme function to use
<source lang="php">
<source lang="php">
$pdf->setX(float a); // fixe la position x courante
$pdf->setX(float a); // set current x position
$pdf->setY(float b); // fixe la position y courante
$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>
Rappel: l'origine des fonction setXY est le coin supérieur gauche
Note: Origin for setXY functions are the top left corner of page.


== More information ==
== More information ==

Navigation menu