Questions tagged [python-barcode]
4 questions
1
vote
1 answer
python-barcode: All barcode images seem to be output as SVG. How to properly output as PNG?
Below is a simplistic example I put together to try to generate a PNG image of a barcode using python-barcode. It seems to me that no matter how I generate the barcode it always generates as an SVG. As far as I can tell this snippet follows the…

Rob
- 13
- 3
0
votes
1 answer
How can I adjust the top and bottom borders of a barcode created with python-barcode?
I'm using barcode.Code39 and barcode.writer.ImageWriter from the python-barcode library (version 0.15.1) to create a simple barcode and dump it to a PNG. I was able to control the left and right borders using the quiet_zone option and remove the…

OptiAndrew
- 27
- 6
0
votes
0 answers
How to use python-barcode in Amazon AWS lambda (Python 3.8)?
I'm getting this error:
Traceback (most recent call last):
File "/var/task/barcode/writer.py", line 9, in
import Image
ModuleNotFoundError: No module named 'Image'
During handling of the above exception, another exception…

hhaamm
- 398
- 1
- 2
- 13
0
votes
1 answer
Generate PDF containing multiple SVG barcodes
I am trying to generate a PDF containing all the barcodes in SVG format. Here is the code I've written so far.
from code128 import Code128
import csv
from reportlab.graphics.shapes import Group, Drawing
from reportlab.graphics import renderPDF
from…

usert4jju7
- 1,653
- 3
- 27
- 59