dolibarr-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dolibarr-dev] code barre


From: Régis Houssin
Subject: [Dolibarr-dev] code barre
Date: Fri, 15 Jul 2005 15:03:29 +0200

Bonjour,

La class DolibarrPdfBarCode.class.php génère des codes barres EAN13
non-conforme à l’existant.
voici un lien qui vous montrent un code barre plus conforme :

http://ns32126.ovh.net/barcode/barcode.php?code=3564271675437&encoding=ANY

Ce script génère un jpg, png, gif, html ou texte que l'on pourrait inclure
ensuite dans un pdf.

Par contre ce script tel quel ne peut générer que des codes barres EAN13 et
ISBN (12 ou 13 digits)
et nécessite la librairie GD2 ainsi qu'une police true type (arialbd.ttf).

On peut le coupler avec un exécutable "genbarcode" (genbarcode-0.4.tar.gz)
afin de produire d'autre type de code barre :

You can use the following encodings (when you have genbarcode):
  ANY    choose best-fit (default)
  EAN    8 or 13 EAN-Code
  UPC    12-digit EAN 
  ISBN   isbn numbers (still EAN-13) 
  39     code 39 
  128    code 128 (a,b,c: autoselection) 
  128C   code 128 (compact form for digits)
  128B   code 128, full printable ascii 
  I25    interleaved 2 of 5 (only digits) 
  128RAW Raw code 128 (by Leonid A. Broukhis)
  CBR    Codabar (by Leonid A. Broukhis) 
  MSI    MSI (by Leonid A. Broukhis) 
  PLS    Plessey (by Leonid A. Broukhis)

genbarcode nécessite le package "barcode" (barcode-0.98.tar.gz)

Bien sûr je pourrais compiler le genbarcode pour l'utiliser avec Windows.

Qu'en pensez-vous ?

J'ai joint les archives correspondantes

Merci
Régis

Attachment: php-barcode-0.3pl1.tar.gz
Description: Binary data

Attachment: genbarcode-0.4.tar.gz
Description: Binary data

Attachment: arialbd.ttf
Description: Binary data

Attachment: barcode-0.98.tar.gz
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]