Auto generated examples. See make_examples.py
for details.
Example CODE11
barcode with content 1234567
Code example:
import pyzint
symbol = pyzint.Barcode.CODE11('1234567')
with open('CODE11.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example C25MATRIX
barcode with content 1234567
Code example:
import pyzint
symbol = pyzint.Barcode.C25MATRIX('1234567')
with open('C25MATRIX.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example C25INTER
barcode with content 1234567
Code example:
import pyzint
symbol = pyzint.Barcode.C25INTER('1234567')
with open('C25INTER.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example C25IATA
barcode with content 1234567
Code example:
import pyzint
symbol = pyzint.Barcode.C25IATA('1234567')
with open('C25IATA.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example C25LOGIC
barcode with content 1234567
Code example:
import pyzint
symbol = pyzint.Barcode.C25LOGIC('1234567')
with open('C25LOGIC.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example C25IND
barcode with content 1234567
Code example:
import pyzint
symbol = pyzint.Barcode.C25IND('1234567')
with open('C25IND.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example CODE39
barcode with content 1234567
Code example:
import pyzint
symbol = pyzint.Barcode.CODE39('1234567')
with open('CODE39.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example EXCODE39
barcode with content 1234567
Code example:
import pyzint
symbol = pyzint.Barcode.EXCODE39('1234567')
with open('EXCODE39.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example EANX
barcode with content 1234567
Code example:
import pyzint
symbol = pyzint.Barcode.EANX('1234567')
with open('EANX.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example EANX_CHK
barcode with content 123456789012
Code example:
import pyzint
symbol = pyzint.Barcode.EANX_CHK('123456789012')
with open('EANX_CHK.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example EAN128
barcode with content [01]12345678901234
Code example:
import pyzint
symbol = pyzint.Barcode.EAN128('[01]12345678901234')
with open('EAN128.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example CODABAR
barcode with content A40156B
Code example:
import pyzint
symbol = pyzint.Barcode.CODABAR('A40156B')
with open('CODABAR.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example CODE128
barcode with content 1234567
Code example:
import pyzint
symbol = pyzint.Barcode.CODE128('1234567')
with open('CODE128.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example DPLEIT
barcode with content 1234567
Code example:
import pyzint
symbol = pyzint.Barcode.DPLEIT('1234567')
with open('DPLEIT.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example DPIDENT
barcode with content 1234567
Code example:
import pyzint
symbol = pyzint.Barcode.DPIDENT('1234567')
with open('DPIDENT.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example CODE16K
barcode with content 1234567
Code example:
import pyzint
symbol = pyzint.Barcode.CODE16K('1234567')
with open('CODE16K.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example CODE49
barcode with content 1234567
Code example:
import pyzint
symbol = pyzint.Barcode.CODE49('1234567')
with open('CODE49.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example CODE93
barcode with content 1234567
Code example:
import pyzint
symbol = pyzint.Barcode.CODE93('1234567')
with open('CODE93.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example FLAT
barcode with content 1234567
Code example:
import pyzint
symbol = pyzint.Barcode.FLAT('1234567')
with open('FLAT.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example RSS14
barcode with content 1234567
Code example:
import pyzint
symbol = pyzint.Barcode.RSS14('1234567')
with open('RSS14.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example RSS_LTD
barcode with content 1234567
Code example:
import pyzint
symbol = pyzint.Barcode.RSS_LTD('1234567')
with open('RSS_LTD.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example RSS_EXP
barcode with content [01]12345678901234
Code example:
import pyzint
symbol = pyzint.Barcode.RSS_EXP('[01]12345678901234')
with open('RSS_EXP.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example TELEPEN
barcode with content 1234567
Code example:
import pyzint
symbol = pyzint.Barcode.TELEPEN('1234567')
with open('TELEPEN.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example UPCA
barcode with content 1234567
Code example:
import pyzint
symbol = pyzint.Barcode.UPCA('1234567')
with open('UPCA.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example UPCA_CHK
barcode with content 123456789012
Code example:
import pyzint
symbol = pyzint.Barcode.UPCA_CHK('123456789012')
with open('UPCA_CHK.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example UPCE
barcode with content 001238
Code example:
import pyzint
symbol = pyzint.Barcode.UPCE('001238')
with open('UPCE.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example UPCE_CHK
barcode with content 04252614
Code example:
import pyzint
symbol = pyzint.Barcode.UPCE_CHK('04252614')
with open('UPCE_CHK.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example POSTNET
barcode with content 555551237
Code example:
import pyzint
symbol = pyzint.Barcode.POSTNET('555551237')
with open('POSTNET.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example MSI_PLESSEY
barcode with content 1234567
Code example:
import pyzint
symbol = pyzint.Barcode.MSI_PLESSEY('1234567')
with open('MSI_PLESSEY.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example FIM
barcode with content A
Code example:
import pyzint
symbol = pyzint.Barcode.FIM('A')
with open('FIM.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example LOGMARS
barcode with content 1234567
Code example:
import pyzint
symbol = pyzint.Barcode.LOGMARS('1234567')
with open('LOGMARS.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example PHARMA
barcode with content 12345
Code example:
import pyzint
symbol = pyzint.Barcode.PHARMA('12345')
with open('PHARMA.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example PZN
barcode with content 1234567
Code example:
import pyzint
symbol = pyzint.Barcode.PZN('1234567')
with open('PZN.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example PHARMA_TWO
barcode with content 1234567
Code example:
import pyzint
symbol = pyzint.Barcode.PHARMA_TWO('1234567')
with open('PHARMA_TWO.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example PDF417
barcode with content Hello World
Code example:
import pyzint
symbol = pyzint.Barcode.PDF417('Hello World')
with open('PDF417.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example PDF417TRUNC
barcode with content 1234567
Code example:
import pyzint
symbol = pyzint.Barcode.PDF417TRUNC('1234567')
with open('PDF417TRUNC.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example MAXICODE
barcode with content 1234567
Code example:
import pyzint
symbol = pyzint.Barcode.MAXICODE('1234567')
with open('MAXICODE.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example QRCODE
barcode with content 1234567
Code example:
import pyzint
symbol = pyzint.Barcode.QRCODE('1234567')
with open('QRCODE.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example CODE128B
barcode with content 1234567
Code example:
import pyzint
symbol = pyzint.Barcode.CODE128B('1234567')
with open('CODE128B.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example AUSPOST
barcode with content 12345678
Code example:
import pyzint
symbol = pyzint.Barcode.AUSPOST('12345678')
with open('AUSPOST.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example AUSREPLY
barcode with content 1234567
Code example:
import pyzint
symbol = pyzint.Barcode.AUSREPLY('1234567')
with open('AUSREPLY.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example AUSROUTE
barcode with content 1234567
Code example:
import pyzint
symbol = pyzint.Barcode.AUSROUTE('1234567')
with open('AUSROUTE.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example AUSREDIRECT
barcode with content 1234567
Code example:
import pyzint
symbol = pyzint.Barcode.AUSREDIRECT('1234567')
with open('AUSREDIRECT.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example ISBNX
barcode with content 9781491946008
Code example:
import pyzint
symbol = pyzint.Barcode.ISBNX('9781491946008')
with open('ISBNX.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example RM4SCC
barcode with content 1234567
Code example:
import pyzint
symbol = pyzint.Barcode.RM4SCC('1234567')
with open('RM4SCC.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example DATAMATRIX
barcode with content 1234567
Code example:
import pyzint
symbol = pyzint.Barcode.DATAMATRIX('1234567')
with open('DATAMATRIX.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example EAN14
barcode with content 1234567
Code example:
import pyzint
symbol = pyzint.Barcode.EAN14('1234567')
with open('EAN14.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example VIN
barcode with content 123456789012
Code example:
import pyzint
symbol = pyzint.Barcode.VIN('123456789012')
with open('VIN.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example CODABLOCKF
barcode with content 1234567
Code example:
import pyzint
symbol = pyzint.Barcode.CODABLOCKF('1234567')
with open('CODABLOCKF.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example NVE18
barcode with content 1234567
Code example:
import pyzint
symbol = pyzint.Barcode.NVE18('1234567')
with open('NVE18.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example JAPANPOST
barcode with content 1234567
Code example:
import pyzint
symbol = pyzint.Barcode.JAPANPOST('1234567')
with open('JAPANPOST.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example KOREAPOST
barcode with content 123456
Code example:
import pyzint
symbol = pyzint.Barcode.KOREAPOST('123456')
with open('KOREAPOST.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example RSS14STACK
barcode with content 1234567
Code example:
import pyzint
symbol = pyzint.Barcode.RSS14STACK('1234567')
with open('RSS14STACK.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example RSS14STACK_OMNI
barcode with content 1234567
Code example:
import pyzint
symbol = pyzint.Barcode.RSS14STACK_OMNI('1234567')
with open('RSS14STACK_OMNI.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example RSS_EXPSTACK
barcode with content [01]12345678901234
Code example:
import pyzint
symbol = pyzint.Barcode.RSS_EXPSTACK('[01]12345678901234')
with open('RSS_EXPSTACK.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example PLANET
barcode with content 1234567890123
Code example:
import pyzint
symbol = pyzint.Barcode.PLANET('1234567890123')
with open('PLANET.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example MICROPDF417
barcode with content 1234567
Code example:
import pyzint
symbol = pyzint.Barcode.MICROPDF417('1234567')
with open('MICROPDF417.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example ONECODE
barcode with content 12345678901234567890
Code example:
import pyzint
symbol = pyzint.Barcode.ONECODE('12345678901234567890')
with open('ONECODE.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example PLESSEY
barcode with content 1234567
Code example:
import pyzint
symbol = pyzint.Barcode.PLESSEY('1234567')
with open('PLESSEY.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example TELEPEN_NUM
barcode with content 12345678
Code example:
import pyzint
symbol = pyzint.Barcode.TELEPEN_NUM('12345678')
with open('TELEPEN_NUM.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example ITF14
barcode with content 12345678
Code example:
import pyzint
symbol = pyzint.Barcode.ITF14('12345678')
with open('ITF14.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example KIX
barcode with content 12345678
Code example:
import pyzint
symbol = pyzint.Barcode.KIX('12345678')
with open('KIX.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example AZTEC
barcode with content 12345678
Code example:
import pyzint
symbol = pyzint.Barcode.AZTEC('12345678')
with open('AZTEC.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example DAFT
barcode with content A
Code example:
import pyzint
symbol = pyzint.Barcode.DAFT('A')
with open('DAFT.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example MICROQR
barcode with content 12345678
Code example:
import pyzint
symbol = pyzint.Barcode.MICROQR('12345678')
with open('MICROQR.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example HIBC_128
barcode with content 123456789
Code example:
import pyzint
symbol = pyzint.Barcode.HIBC_128('123456789')
with open('HIBC_128.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example HIBC_39
barcode with content 123456789
Code example:
import pyzint
symbol = pyzint.Barcode.HIBC_39('123456789')
with open('HIBC_39.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example HIBC_DM
barcode with content 123456789
Code example:
import pyzint
symbol = pyzint.Barcode.HIBC_DM('123456789')
with open('HIBC_DM.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example HIBC_QR
barcode with content 123456789
Code example:
import pyzint
symbol = pyzint.Barcode.HIBC_QR('123456789')
with open('HIBC_QR.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example HIBC_PDF
barcode with content 123456789
Code example:
import pyzint
symbol = pyzint.Barcode.HIBC_PDF('123456789')
with open('HIBC_PDF.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example HIBC_MICPDF
barcode with content 123456789
Code example:
import pyzint
symbol = pyzint.Barcode.HIBC_MICPDF('123456789')
with open('HIBC_MICPDF.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example HIBC_BLOCKF
barcode with content 123456789
Code example:
import pyzint
symbol = pyzint.Barcode.HIBC_BLOCKF('123456789')
with open('HIBC_BLOCKF.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example HIBC_AZTEC
barcode with content 123456789
Code example:
import pyzint
symbol = pyzint.Barcode.HIBC_AZTEC('123456789')
with open('HIBC_AZTEC.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example DOTCODE
barcode with content 1234567890
Code example:
import pyzint
symbol = pyzint.Barcode.DOTCODE('1234567890')
with open('DOTCODE.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example HANXIN
barcode with content 1234567890
Code example:
import pyzint
symbol = pyzint.Barcode.HANXIN('1234567890')
with open('HANXIN.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example MAILMARK
barcode with content 41038422416563762EF61AH8T
Code example:
import pyzint
symbol = pyzint.Barcode.MAILMARK('41038422416563762EF61AH8T')
with open('MAILMARK.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example AZRUNE
barcode with content 1
Code example:
import pyzint
symbol = pyzint.Barcode.AZRUNE('1')
with open('AZRUNE.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example CODE32
barcode with content 32
Code example:
import pyzint
symbol = pyzint.Barcode.CODE32('32')
with open('CODE32.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example EANX_CC
barcode with content [21]A12345678
and primary 12345678+123
Code example:
import pyzint
symbol = pyzint.Barcode.EANX_CC('[21]A12345678', primary='12345678+123')
with open('EANX_CC.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example RSS14_CC
barcode with content [21]A12345678
and primary 12345678
Code example:
import pyzint
symbol = pyzint.Barcode.RSS14_CC('[21]A12345678', primary='12345678')
with open('RSS14_CC.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example RSS_LTD_CC
barcode with content [21]A12345678
and primary 12345678
Code example:
import pyzint
symbol = pyzint.Barcode.RSS_LTD_CC('[21]A12345678', primary='12345678')
with open('RSS_LTD_CC.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example UPCA_CC
barcode with content [21]A12345678
and primary 12345678
Code example:
import pyzint
symbol = pyzint.Barcode.UPCA_CC('[21]A12345678', primary='12345678')
with open('UPCA_CC.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example UPCE_CC
barcode with content [21]A04252614
and primary 0425261
Code example:
import pyzint
symbol = pyzint.Barcode.UPCE_CC('[21]A04252614', primary='0425261')
with open('UPCE_CC.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example RSS14STACK_CC
barcode with content [21]A12345678
and primary 12345678
Code example:
import pyzint
symbol = pyzint.Barcode.RSS14STACK_CC('[21]A12345678', primary='12345678')
with open('RSS14STACK_CC.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example RSS14_OMNI_CC
barcode with content [21]A12345678
and primary 12345678
Code example:
import pyzint
symbol = pyzint.Barcode.RSS14_OMNI_CC('[21]A12345678', primary='12345678')
with open('RSS14_OMNI_CC.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example RSS_EXPSTACK_CC
barcode with content [21]A12345678901234
and primary [01]12345678901234
Code example:
import pyzint
symbol = pyzint.Barcode.RSS_EXPSTACK_CC('[21]A12345678901234', primary='[01]12345678901234')
with open('RSS_EXPSTACK_CC.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example CHANNEL
barcode with content 123
Code example:
import pyzint
symbol = pyzint.Barcode.CHANNEL('123')
with open('CHANNEL.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example CODEONE
barcode with content [21]A12345678
and primary 12345678
Code example:
import pyzint
symbol = pyzint.Barcode.CODEONE('[21]A12345678', primary='12345678')
with open('CODEONE.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example GRIDMATRIX
barcode with content [21]A12345678
and primary 12345678
Code example:
import pyzint
symbol = pyzint.Barcode.GRIDMATRIX('[21]A12345678', primary='12345678')
with open('GRIDMATRIX.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example UPNQR
barcode with content [21]A12345678
and primary 12345678
Code example:
import pyzint
symbol = pyzint.Barcode.UPNQR('[21]A12345678', primary='12345678')
with open('UPNQR.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())
Example RMQR
barcode with content [21]A12345678
and primary 12345678
Code example:
import pyzint
symbol = pyzint.Barcode.RMQR('[21]A12345678', primary='12345678')
with open('RMQR.bmp', "wb") as bmp:
bmp.write(symbol.render_bmp())