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.

BarcodeParameters Constructor

__init__(self, java_class) -> def
ParameterTypeDescription
java_class``

BarcodeParameters.australian_post

australian_post(self) -> AustralianPostParameters

AustralianPost barcode parameters.

Return Type: AustralianPostParameters

BarcodeParameters.aztec

aztec(self) -> AztecParameters

Aztec parameters.

Return Type: AztecParameters

BarcodeParameters.codabar

codabar(self) -> CodabarParameters

Codabar parameters.

Return Type: CodabarParameters

BarcodeParameters.codablock

codablock(self) -> CodablockParameters

Codablock parameters.

Return Type: CodablockParameters

BarcodeParameters.code_128

code_128(self) -> Code128Parameters

Code128 parameters.

Return Type: Code128Parameters

BarcodeParameters.code_16k

code_16k(self) -> Code16KParameters

Code16K parameters.

Return Type: Code16KParameters

BarcodeParameters.codetext_parameters

codetext_parameters(self) -> CodetextParameters

Codetext parameters.

Return Type: CodetextParameters

BarcodeParameters.coupon

coupon(self) -> CouponParameters

Coupon parameters. Used for UpcaGs1DatabarCoupon, UpcaGs1Code128Coupon.

Return Type: CouponParameters

BarcodeParameters.data_bar

data_bar(self) -> DataBarParameters

Databar parameters.

Return Type: DataBarParameters

BarcodeParameters.data_matrix

data_matrix(self) -> DataMatrixParameters

DataMatrix parameters.

Return Type: DataMatrixParameters

BarcodeParameters.dot_code

dot_code(self) -> DotCodeParameters

DotCode parameters.

Return Type: DotCodeParameters

BarcodeParameters.han_xin

han_xin(self) -> HanXinParameters

HanXin parameters.

Return Type: HanXinParameters

BarcodeParameters.itf

itf(self) -> ITFParameters

ITF parameters.

Return Type: ITFParameters

BarcodeParameters.maxi_code

maxi_code(self) -> MaxiCodeParameters

MaxiCode parameters.

Return Type: MaxiCodeParameters

BarcodeParameters.padding

padding(self) -> Padding

Barcode paddings. Default value: 5pt 5pt 5pt 5pt.

Return Type: Padding

BarcodeParameters.patch_code

patch_code(self) -> PatchCodeParameters

PatchCode parameters.

Return Type: PatchCodeParameters

BarcodeParameters.pdf_417

pdf_417(self) -> Pdf417Parameters

PDF417 parameters.

Return Type: Pdf417Parameters

BarcodeParameters.postal

postal(self) -> PostalParameters

Postal parameters. Used for Postnet, Planet.

Return Type: PostalParameters

BarcodeParameters.qr

qr(self) -> QrParameters

QR parameters.

Return Type: QrParameters

BarcodeParameters.supplement

supplement(self) -> SupplementParameters

Supplement parameters. Used for Interleaved2of5, Standard2of5, EAN13, EAN8, UPCA, UPCE, ISBN, ISSN, ISMN.

Return Type: SupplementParameters

BarcodeParameters.bar_color

Type: Tuple[int, int, int]

Bars color, representation of an RGB tuple. Default value: 0

Bars color, representation of an RGB tuple. Default value: 0.

ParameterTypeDescription
valueTuple[int, int, int]

BarcodeParameters.bar_height

Type: Unit

Height of 1D barcodes’ bars in Unit value. Ignored if AutoSizeMode property is set to AutoSizeMode.NEAREST or AutoSizeMode.INTERPOLATION.

Height of 1D barcodes’ bars in Unit value. Ignored if AutoSizeMode property is set to AutoSizeMode.NEAREST or AutoSizeMode.INTERPOLATION.

ParameterTypeDescription
valueUnit

BarcodeParameters.bar_width_reduction

Type: Unit

Get bars reduction value that is used to compensate ink spread while printing.

Returns: Unit value of BarWidthReduction

Sets bars reduction value that is used to compensate ink spread while printing.

ParameterTypeDescription
valueUnit

BarcodeParameters.checksum_always_show

Type: bool

Always display checksum digit in the human readable text for Code128 and GS1Code128 barcodes.

Always display checksum digit in the human-readable text for Code128 and GS1Code128 barcodes.

ParameterTypeDescription
valuebool

BarcodeParameters.checksum_enabled

Type: EnableChecksum

Enable 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 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

ParameterTypeDescription
valueEnableChecksum

BarcodeParameters.enable_escape

Type: bool

Indicates 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.

Indicates 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.

ParameterTypeDescription
valuebool

BarcodeParameters.filled_bars

Type: bool

Gets a value indicating whether bars filled. Only for 1D barcodes. Default value: True.

Sets a value indicating whether bars filled. Only for 1D barcodes. Default value: True.

ParameterTypeDescription
valuebool

BarcodeParameters.gs1_composite_bar

Type: GS1CompositeBarParameters

GS1 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 ‘/’

Returns: GS1CompositeBarParameters GS1 Composite Bar parameters.

GS1 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 ‘/’

ParameterTypeDescription
valueGS1CompositeBarParameters

BarcodeParameters.wide_narrow_ratio

Type: float

Wide 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.

Wide 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.

ParameterTypeDescription
valuefloat

BarcodeParameters.x_dimension

Type: Unit

x-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.

x-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.

ParameterTypeDescription
unitUnit