aspose_barcode.generation

aspose_barcode.generation module

Use these types to define barcode symbology, appearance, and output options, and to generate barcode images or streams directly from Python code that runs on the JVM. The namespace includes parameter objects such as AustralianPostParameters, AztecParameters, BorderParameters, and the core BarcodeGenerator class.

Classes

ClassDescription
AustralianPostParametersAustralianPost barcode parameters.
AztecExtCodetextBuilderExtended codetext generator for Aztec barcodes for ExtendedCodetext Mode of AztecEncodeMode Use TwoDDisplayText property
AztecParametersAztec parameters.
BarcodeGeneratorBarcodeGenerator for backend barcode images generation. Supported symbologies: 1D: Codabar, Code11, Code128, Code39Stand
BarcodeParametersBarcode generation parameters.
BaseGenerationParametersBarcode image generation parameters.
BorderParametersBarcode image border parameters.
CaptionParametersCaption parameters.
CMYKColor
CodabarParametersCodabar parameters.
CodablockParametersCodablock parameters.
Code128ParametersCode128 parameters.
Code16KParametersCode16K parameters.
CodetextParametersCodetext parameters.
CouponParametersCoupon parameters. Used for UpcaGs1DatabarCoupon, UpcaGs1Code128Coupon.
DataBarParametersDatabar parameters.
DataMatrixExtCodetextBuilderExtended codetext generator for 2D DataMatrix barcodes for ExtendedCodetext Mode of DataMatrixEncodeMode.
DataMatrixParametersDataMatrix parameters.
DotCodeExtCodetextBuilderExtended codetext generator for 2D DotCode barcodes for ExtendedCodetext Mode of DotCodeEncodeMode.
DotCodeParametersDotCode parameters.
ExtCodetextBuilderHelper class for automatic codetext generation of the Extended Codetext Mode.
FontUnitDefines a particular format for text, including font face, size, and style attributes where size in Unit value property.
GS1CompositeBarParametersGS1 Composite bar parameters.
HanXinExtCodetextBuilderExtended codetext generator for Han Xin Code for Extended Mode of HanXinEncodeMode.
HanXinParametersHan Xin parameters.
HslaColorClass for representing HSLA color (Hue, Saturation, Lightness, Alpha)
ImageParametersImage parameters.
ITFParametersITF parameters.
MaxiCodeExtCodetextBuilderExtended codetext generator for MaxiCode barcodes for ExtendedCodetext Mode of MaxiCodeEncodeMode Use TwoDDisplayText pr
MaxiCodeParametersMaxiCode parameters.
PaddingPaddings parameters.
PatchCodeParametersPatchCode parameters.
Pdf417ParametersPDF417 parameters. Contains PDF417, MacroPDF417, MicroPDF417 and GS1MicroPdf417 parameters. MacroPDF417 requires two fie
PdfParameters
PostalParametersPostal parameters. Used for Postnet, Planet.
QrExtCodetextBuilderExtended codetext generator for 2D QR barcodes for ExtendedCodetext Mode of QREncodeMode Use Display2DText property of B
QrParametersQR parameters.
QrStructuredAppendParametersQR structured append parameters.
SupplementParametersSupplement parameters. Used for Interleaved2of5, Standard2of5, EAN13, EAN8, UPCA, UPCE, ISBN, ISSN, ISMN.
SvgParametersSVG parameters.
UnitSpecifies the size value in different units (Pixel, Inches, etc.). This sample shows how to create and save a BarCode im

Enums

EnumDescription
AutoSizeModeSpecifies the different types of automatic sizing modes. Default value is AutoSizeMode.NONE. This sample shows how to cr
AztecEncodeMode
AztecSymbolModeSpecifies the Aztec symbol mode.
BarcodeClassificationsBarcodeClassifications EncodeTypes classification.
BarCodeImageFormatSpecifies the file format of the image.
BorderDashStyleSpecifies the style of dashed border lines.
CodabarChecksumModeSpecifies the checksum algorithm for Codabar.
CodabarSymbolSpecifies the start or stop symbol of the Codabar barcode specification.
Code128EncodeModeEncoding mode for Code128 barcodes. specification. This code demonstrates how to generate code 128 with different encodi
CodeLocationCodetext location.
DataMatrixEccTypeSpecify the type of the ECC to encode.
DataMatrixEncodeModeDataMatrix encoder’s encoding mode, default to Auto. This sample shows how to do codetext in Extended Mode.
DataMatrixVersionSpecify the type of the ECC to encode.
DotCodeEncodeModeEncoding mode for DotCode barcodes.
ECIEncodingsExtended Channel Interpretation Identifiers. It is used to tell the barcode reader details about the used references for
EnableChecksumDEFAULT = 0 - If checksum is required by the specification - it will be attached. YES = 1 - Always use checksum if possi
EncodeTypesSpecifies the type of barcode to encode.
FontModeFont size mode.
FontStyleSpecifies style information applied to text.
GraphicsUnitSpecifies the unit of measure for the given data. WORLD = 0 - Specifies the world coordinate system unit as the unit of
HanXinEncodeModeHan Xin Code encoding mode. It is recommended to use Auto with ASCII / Chinese characters or Unicode for Unicode charact
HanXinErrorLevelLevel of Reed-Solomon error correction. From low to high = L1, L2, L3, L4.
HanXinVersionVersion of Han Xin Code. From Version01 - 23 x 23 modules to Version84 - 189 x 189 modules, increasing in steps of 2 mod
ITF14BorderTypeITF14 barcode’s border type.
MacroCharacterMacro Characters 05 and 06 values are used to obtain more compact encoding in special modes. 05 Macro craracter is trans
MaxiCodeEncodeModeEncoding mode for MaxiCode barcodes. codetext = “犬Right狗” generator = BarcodeGenerator(EncodeTypes.MAXI_CODE, codetext)
MaxiCodeModeEncoding mode for MaxiCode barcodes. This sample shows how to genereate MaxiCode barcodes using ComplexBarcodeGenerator
MicroQRVersionVersion of MicroQR Code. From M1 to M4.
PatchFormatPatchCode format. Choose PatchOnly to generate single PatchCode. Use page format to generate Patch page with PatchCodes
Pdf417CompactionModePdf417 barcode’s compation mode.
Pdf417EncodeModePdf417 barcode encode mode.
Pdf417ErrorLevelpdf417 barcode’s error correction level, from level 0 to level 9, level 0 means no error correction, level 9 means best
Pdf417MacroTerminatorUsed to tell the encoder whether to add Macro PDF417 Terminator (codeword 922) to the segment. Applied only for Macro PD
QREncodeModeEncoding mode for QR barcodes.
QREncodeTypeQR / MicroQR selector mode. Select FORCE_QR for standard QR symbols, AUTO for MicroQR. FORCE_MICRO_QR is used for strong
QRErrorLevelLevel of Reed-Solomon error correction. From low to high: LEVEL_L, LEVEL_M, LEVEL_Q, LEVEL_H.
QrExtCompactionModeSpecifies QR compaction mode for codetext added by QrExtCodetextBuilder.
QRVersionVersion of QR Code. From Version1 to Version40 for QR code and from M1 to M4 for MicroQr.
RectMicroQRVersion
SvgColorModePossible modes for filling color in svg file, RGB is default and supported by SVG 1.1. RGBA, HSL, HSLA is allowed in SVG
TextAlignmentText alignment.
TwoDComponentTypeType of 2D component This sample shows how to create and save a GS1 Composite Bar image. Note that 1D codetext and 2D co