Aspose.Barcode for Python via Java Generation and Recognition API docs
asposebarcode.ComplexBarcode.ComplexBarcodeGenerator Class Reference

ComplexBarcodeGenerator for backend complex barcode (e.g. More...

Inherits asposebarcode.Assist.BaseJavaClass.

Public Member Functions

def init (self)
 
def getParameters (self)
 Generation parameters. More...
 
def __init__ (self, complexCodetext)
 Creates an instance of ComplexBarcodeGenerator. More...
 
def generateBarCodeImage (self)
 Generates complex barcode image under current settings. More...
 
def save (self, imagePath, imageFormat)
 Save barcode image to specific file in specific format. More...
 
- Public Member Functions inherited from asposebarcode.Assist.BaseJavaClass
def getJavaClass (self)
 
def setJavaClass (self, javaClass)
 
def getJavaClassName (self)
 
def isNull (self)
 
def printJavaClassName (self)
 

Public Attributes

 parameters
 
- Public Attributes inherited from asposebarcode.Assist.BaseJavaClass
 javaClass
 
 javaClassName
 

Static Public Attributes

string javaClassName = "com.aspose.mw.barcode.complexbarcode.MwComplexBarcodeGenerator"
 

Detailed Description

ComplexBarcodeGenerator for backend complex barcode (e.g.

SwissQR) images generation. This sample shows how to create and save a SwissQR image. swissQRCodetext = SwissQRCodetext(null); swissQRCodetext.getBill().setAccount("Account"); swissQRCodetext.getBill().setBillInformation("BillInformation"); swissQRCodetext.getBill().setBillInformation("BillInformation"); swissQRCodetext.getBill().setAmount(1024); swissQRCodetext.getBill().getCreditor().setName("Creditor.Name"); swissQRCodetext.getBill().getCreditor().setAddressLine1("Creditor.AddressLine1"); swissQRCodetext.getBill().getCreditor().setAddressLine2("Creditor.AddressLine2"); swissQRCodetext.getBill().getCreditor().setCountryCode("Nl"); swissQRCodetext.getBill().setUnstructuredMessage("UnstructuredMessage"); swissQRCodetext.getBill().setReference("Reference"); swissQRCodetext.getBill().setAlternativeSchemes([AlternativeScheme("AlternativeSchemeInstruction1"), AlternativeScheme("AlternativeSchemeInstruction2")]); swissQRCodetext.getBill().setDebtor(new Address(null)); swissQRCodetext.getBill().getDebtor().setName("Debtor.Name"); swissQRCodetext.getBill().getDebtor().setAddressLine1("Debtor.AddressLine1"); swissQRCodetext.getBill().getDebtor().setAddressLine2("Debtor.AddressLine2"); swissQRCodetext.getBill().getDebtor().setCountryCode("Lux"); cg = ComplexBarcodeGenerator(swissQRCodetext); res = cg.generateBarCodeImage();

Constructor & Destructor Documentation

◆ __init__()

def asposebarcode.ComplexBarcode.ComplexBarcodeGenerator.__init__ (   self,
  complexCodetext 
)

Creates an instance of ComplexBarcodeGenerator.

Parameters
complexCodetextComplex codetext

Reimplemented from asposebarcode.Assist.BaseJavaClass.

Member Function Documentation

◆ generateBarCodeImage()

def asposebarcode.ComplexBarcode.ComplexBarcodeGenerator.generateBarCodeImage (   self)

Generates complex barcode image under current settings.

Parameters
valueof BarCodeImageFormat (PNG, BMP, JPEG, GIF, TIFF) default value is BarCodeImageFormat.PNG
Returns
Pillow Image object of barcode image

◆ getParameters()

def asposebarcode.ComplexBarcode.ComplexBarcodeGenerator.getParameters (   self)

Generation parameters.

◆ init()

def asposebarcode.ComplexBarcode.ComplexBarcodeGenerator.init (   self)

◆ save()

def asposebarcode.ComplexBarcode.ComplexBarcodeGenerator.save (   self,
  imagePath,
  imageFormat 
)

Save barcode image to specific file in specific format.

Parameters
filePathPath to save to.
valueof BarCodeImageFormat enum (PNG, BMP, JPEG, GIF, TIFF) generator = BarCodeGenerator(EncodeTypes.CODE_128); generator.save(file_path, BarCodeImageFormat.PNG);

Member Data Documentation

◆ javaClassName

string asposebarcode.ComplexBarcode.ComplexBarcodeGenerator.javaClassName = "com.aspose.mw.barcode.complexbarcode.MwComplexBarcodeGenerator"
static

◆ parameters

asposebarcode.ComplexBarcode.ComplexBarcodeGenerator.parameters