fitz v0.1.1 Barcode

Documentation for Barcode.

Link to this section Summary

Functions

Barcode generate. returns a barcode given a value and method

Examples

Barcode pad_string. pads a string for use in barcode

Examples

Link to this section Functions

Link to this function

generate(value, method)

Barcode generate. returns a barcode given a value and method

Examples

iex> value = "28727827"
 "28727827"
iex> method = 39
 "28727827"
iex> Barcode.generate(value, method)
%{path: "/path/to/my/barcode", token: "28727827_my_padding_here", filename: "mybarcode.png", mime_type: "image/png"}
Link to this function

pad_string(string, length)

Barcode pad_string. pads a string for use in barcode

Examples

iex> Barcode.pad_string("28727827")
"28727827_my_padding_here"