File: genericbarcode.pl

package info (click to toggle)
libsoap-wsdl-perl 3.004-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 2,600 kB
  • sloc: perl: 8,433; xml: 1,769; java: 19; makefile: 15
file content (29 lines) | stat: -rw-r--r-- 1,093 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
use lib 'lib';
use lib '../lib';
use MyInterfaces::BarCode::BarCodeSoap;
my $interface = MyInterfaces::BarCode::BarCodeSoap->new();
my $barcode = $interface->GenerateBarCode(  {
           BarCodeParam =>     { # MyTypes::BarCodeData
             Height =>  42, # int
             Width =>  120, # int
             Angle =>  90, # int
             Ratio =>  1, # int
             Module =>  1, # int
             Left =>  10, # int
             Top =>  10, # int
             CheckSum =>  0, # boolean
             FontName =>  'Arial', # string
             BarColor =>  'black', # string
             BGColor =>  'white', # string
             FontSize =>  6.25, # float
             barcodeOption => 'Both', # BarcodeOption
             barcodeType => 'CodeMSI', # BarcodeType
             checkSumMethod => 'None', # CheckSumMethod
             showTextPosition => 'TopLeft', # ShowTextPosition
             BarCodeImageFormat => 'PNG', # ImageFormats
           },
           BarCodeText =>  'JustSomeText', # string
         },
        );
die $barcode if not ($barcode);
print $barcode;