BarcodeParameters

BarcodeParameters class

Module: aspose_barcode.generation.barcode_parameters

Barcode generation parameters.

Constructors

NameDescription
init

Methods

NameReturn TypeStaticDescription
australian_postAustralianPostParametersNoAustralianPost barcode parameters.
aztecAztecParametersNoAztec parameters.
codabarCodabarParametersNoCodabar parameters.
codablockCodablockParametersNoCodablock parameters.
code_128Code128ParametersNoCode128 parameters.
code_16kCode16KParametersNoCode16K parameters.
codetext_parametersCodetextParametersNoCodetext parameters.
couponCouponParametersNoCoupon parameters. Used for UpcaGs1DatabarCoupon, UpcaGs1Code128Coupon.
data_barDataBarParametersNoDatabar parameters.
data_matrixDataMatrixParametersNoDataMatrix parameters.
dot_codeDotCodeParametersNoDotCode parameters.
han_xinHanXinParametersNoHanXin parameters.
itfITFParametersNoITF parameters.
maxi_codeMaxiCodeParametersNoMaxiCode parameters.
paddingPaddingNoBarcode paddings. Default value: 5pt 5pt 5pt 5pt.
patch_codePatchCodeParametersNoPatchCode parameters.
pdf_417Pdf417ParametersNoPDF417 parameters.
postalPostalParametersNoPostal parameters. Used for Postnet, Planet.
qrQrParametersNoQR parameters.
supplementSupplementParametersNoSupplement parameters. Used for Interleaved2of5, Standard2of5, EAN13, EAN8, UPCA, UPCE, ISBN, ISSN, ISMN.

Properties

NameTypeDescription
bar_colorTuple[int, int, int]Bars color, representation of an RGB tuple. Default value: 0
bar_heightUnitHeight of 1D barcodes’ bars in Unit value. Ignored if AutoSizeMode property is set to AutoSizeMode.NEAREST or AutoSizeMode.INTERPOLATION.
bar_width_reductionUnitGet bars reduction value that is used to compensate ink spread while printing.
checksum_always_showboolAlways display checksum digit in the human readable text for Code128 and GS1Code128 barcodes.
checksum_enabledEnableChecksumEnable checksum during generation 1D barcodes. Default is treated as Yes for symbology which must contain checksum, as No where checksum only possible. Checksum is possible: Code39 Standard/Extended, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, DeutschePostIdentcode, DeutschePostLeitcode, VIN, Codabar Checksum always used: Rest symbology
enable_escapeboolIndicates whether explains the character “" as an escape character in CodeText property. Used for Pdf417, DataMatrix, Code128 only If the EnableEscape is True, “" will be explained as a special escape character. Otherwise, “" acts as normal characters. Aspose.BarCode supports inputing decimal ascii code and mnemonic for ASCII control-code characters. For example, \013 and \CR stands for CR.
filled_barsboolGets a value indicating whether bars filled. Only for 1D barcodes. Default value: True.
gs1_composite_barGS1CompositeBarParametersGS1 Composite Bar parameters. This sample shows how to create and save a GS1 Composite Bar image. Note that 1D codetext and 2D codetext are separated by symbol ‘/’
wide_narrow_ratiofloatWide bars to Narrow bars ratio. Default value: 3, that is, wide bars are 3 times as wide as narrow bars. Used for ITF, PZN, PharmaCode, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, IATA2of5, VIN, DeutschePost, OPC, Code32, DataLogic2of5, PatchCode, Code39Extended, Code39Standard The WideNarrowRatio parameter value is less than or equal to 0.
x_dimensionUnitx-dimension is the smallest width of the unit of BarCode bars or spaces. Increasing this will increase the whole barcode image width. Ignored if AutoSizeMode property is set to AutoSizeMode.NEAREST or AutoSizeMode.INTERPOLATION.