Thread Barcode für Code39 erstellen und als Grafik speichern (5 answers)
Opened by namenlose at 2013-11-13 11:59

GwenDragon
 2013-11-13 12:42
#172041 #172041
User since
2005-01-17
14563 Artikel
Admin1
[Homepage]
user image
http://cpansearch.perl.org/src/KWITKNR/GD-Barcode-...
Wo unter sample eine Perl-Datei smp_all.pl zu finden ist wie das generierte Barcode-Bilder als Datei gespeichert werden. ;)

Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
#6)CODE-39
#6.1 NORMAL
print "=======================\nCode39: NORMAL\n";
$oGdBar = GD::Barcode->new('Code39', '*123456789012*');
print "PTN:", $oGdBar->{text}, ":" ,$oGdBar->barcode, "\n";
open(OUT, '>Code39.png');
binmode OUT;                                    #for Windows
print OUT $oGdBar->plot->png;
close OUT;
undef $oGdBar;

Last edited: 2013-11-13 12:45:08 +0100 (CET)
die Drachin, Gwendolyn


Unterschiedliche Perl-Versionen auf Windows (fast wie perlbrew) • Meine Perl-Artikel

View full thread Barcode für Code39 erstellen und als Grafik speichern