Rapport.Barcode (rapport v0.7.2)

Summary

Functions

Creates a barcode image (PNG) with the given text

Functions

Link to this function

create(barcode_type, text, opts \\ [])

@spec create(:code128 | :code39 | :code93 | :itf | :ean13, String.t(), keyword()) ::
  String.t()

Creates a barcode image (PNG) with the given text

It expects the barcode type to be an :atom and it must be :code39, :code93, code128 or :itf, otherwise ArgumentError will be raised.

Options

  • barcode_type - The barcode type to use
  • text - The text to use to generate the barcode