bonjour,
Est-il compliqué d'ajouter dans TCPDF ce qu'il ne faut pour éviter cette
erreur :
Fatal error: Call to a member function write2DBarcode() on a non-object
in
/var/alternc/html/m/molene/www/............;;galette/plugins/Attestation/qr-code-namd.php
on line 17
Alors la création des codes QR-code devient très aisée :
<?php
// set style for barcode
$style = array(
'border' => 2,
'vpadding' => 'auto',
'hpadding' => 'auto',
'fgcolor' => array(0,0,0),
'bgcolor' => false, //array(255,255,255)
'module_width' => 1, // width of a single module in points
'module_height' => 1 // height of a single module in points
);
$text =" texte à intégrer";
// QRCODE,L : QR-CODE Low error correction
$pdf->write2DBarcode('$text', 'QRCODE,L', 20, 30, 50, 50, $style, 'N');
?>
merci de vos lumières.
Cordialement
_______________________________________________
Galette-devel mailing list
[email protected]
https://mail.gna.org/listinfo/galette-devel