Create a PDF document template: Difference between revisions

Jump to navigation Jump to search
Line 47: Line 47:
* _pagefoot() - ''Méthode de dessin du pied de page''
* _pagefoot() - ''Méthode de dessin du pied de page''


== Insertion d'un logo ==
== Insert a logo ==
* Ajouter l'instruction:
* Add following instructions
<source lang="php">
<source lang="php">
$pdf->Image('\www\htdocs\dolibarr\document\societe\logo.jpg', 10, 5, 60.00);
$pdf->Image('\www\htdocs\dolibarr\document\societe\logo.jpg', 10, 5, 60.00);
</source>
</source>
Avec dans l'exemple: 10=abscisse, 5=ordonnée, 60=largeur logo
With this example: 10=abscissa, 5=ordinate, 60=with of logo
* Si le logo se trouve par dessous ou dessus du text existant, supprimer le texte existant en commentant le code qui affiche l'information ou en modifiant sa position.
* If log 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 ==
== Modification des constantes affichées ==

Navigation menu