barcode#
- trytond.tools.barcode.generate_svg(name, code[, width[, height[, border[, font_size[, text_distance[, background[, foreground]]]]]]])#
Return a
BytesIO
containing the SVG image of the named barcode.
- trytond.tools.barcode.generate_png(name, code[, width[, height[, border[, font_size[, text_distance[, background[, foreground]]]]]]])#
Return a
BytesIO
containing the PNG image of the named barcode.
- trytond.tools.barcode.BARCODES#
A set of available barcode names.