View Source PDF417 (pdf417 v0.2.0)

The public interface for PDF417. Use #encode/1 or /2 for great goodness.

Link to this section Summary

Functions

Renders the given message in png image format. Returns iodata that can be written to a file or converted to something else.

Same as encode/2, but returns a base64 encoded string.

Same as encode/2, but takes a file path option, and writes the PNG data to a file you specify

Link to this section Functions

Link to this function

encode(message, options \\ %{})

View Source

Renders the given message in png image format. Returns iodata that can be written to a file or converted to something else.

options

Options

  • :columns - Defaults to 4. The number of columns in your symbol output.
  • :security_level - Defaults to 3, which is sufficient for up to 160 data codewords (about 320 characters of text). Every 320 characters, add one level here, up to level 8.
Link to this function

encode_to_base64(message, options \\ %{})

View Source

Same as encode/2, but returns a base64 encoded string.

Link to this function

encode_to_file(message, file_path, options \\ %{})

View Source

Same as encode/2, but takes a file path option, and writes the PNG data to a file you specify