Bar_codes

Website:

https://ada-bar-codes.sourceforge.io/

Author:
  • Gautier de Montmollin
Maintainer:
  • fabien.chouteau@gmail.com
License:

MIT

Version:

5.0.0

Alire CI:

Dependencies:

No dependency.

Dependents:

No dependents.

Badge:

Generate various types of bar codes (1D or 2D) on various media

#bar #code #barcode #bar-code #datamatrix #data-matrix #qr #qrcode #qr-code #code128 #msi #ean13 #upca #pbm #pdf #png #svg

 QR  Code 128  Data Matrix

Some features:

  • 1D bar codes supported: Code 128, EAN-13, MSI, UPC-A
  • 2D bar codes supported: Data Matrix, QR Codes
  • Task safe
  • Endian-neutral
  • Multi-platform, but native code build
  • Standalone (no dependency on other libraires, bindings, etc.; no extra component needed for running)
  • Unconditionally portable code: OS-, CPU-, compiler- independent code.
  • Pure Ada 2012: this package can be used in projects in Ada 2012 and later versions of the Ada language
  • Tests and demos included
  • Free, open-source

The creation of a bar code is as simple as this small procedure:

with Ada.Text_IO, Bar_Codes, Bar_Codes_Media;

procedure Small_Demo is
  use Ada.Text_IO;
  svg : File_Type;
begin
  Create (svg, Out_File, "qr_code.svg");
  Put_Line
    (svg,
     Bar_Codes_Media.SVG_Bar_Code
       (Bar_Codes.Code_QR_Low, 100.0, 100.0, "mm", "Hello"));
  Close (svg);
end Small_Demo;