2 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 code    
  output_file_path    
  [#:code_type code_type    
  #:color_pair color_pair    
  #:brick_width brick_width])  boolean?
  code : string?
  output_file_path : path-string?
  code_type : symbol? = 'ean13
  color_pair : pair? = '("black" . "white")
  brick_width : exact-nonnegative-integer? = 2
support code_type: ’ean13, ’code128, ’code39, ’code39_checksum