2 Usage
(require simple-barcode) | package: simple-barcode |
2.1 Write
select a type, size, color, then write a string to barcode.
there is also a complete read and write example on github:includedin the source.
procedure
(barcode-write output_type code output_file_path [ #:code_type code_type #:color_pair color_pair #:brick_width brick_width #:font_size font_size]) → boolean? output_type : (or/c 'png 'svg) code : string? output_file_path : path-string? code_type : symbol? = 'ean13 color_pair : pair? = '("black" . "white") brick_width : natural? = 3 font_size : natural? = 3
support code_type: ’ean13, ’code128, ’code39, ’code39_checksum
2.2 Read
read barcode from a picture file.
procedure
(barcode-read barcode_file_path [ #:code_type code_type]) → string? barcode_file_path : path-string? code_type : symbol? = 'ean13
support code_type: ’ean13, ’code128, ’code39, ’code39_checksum