{"library":"pdf417gen","title":"pdf417gen","description":"A pure Python library for generating PDF417 2D barcodes. Version 0.8.1 (latest) supports encoding text, bytes, and numbers into PDF417 barcodes, with output as PIL Images, SVG strings, or list of boolean rows. Requires Python >=3.8.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install pdf417gen"],"cli":null},"imports":["from pdf417gen import encode","from pdf417gen import render_image","from pdf417gen import render_svg","from pdf417gen import to_legacy_barcodes"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from pdf417gen import encode, render_image\nfrom PIL import Image\n\n# Encode a string into barcode codewords\ncodes = encode('Hello, PDF417!')\n\n# Render as PIL Image (returns a PIL Image object)\nimage = render_image(codes)  # type: Image.Image\nimage.save('barcode.png')","lang":"python","description":"Encode a string and render as image. Requires Pillow.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}