Menu

Tree [r92] /
 History

HTTPS access


File Date Author Commit
 demo 2025-11-25 gdemont [r88] Improved SVG rendering
 gnat 2024-02-18 gdemont [r58] Applied 0001-Remove-trailing-whitespace.patch
 test 2024-09-14 gdemont [r82] RC 005
 tools 2025-11-30 gdemont [r89] Added white margins to PBM output
 ada_bar_codes.gpr 2025-11-23 gdemont [r86] Adding a tool, `bc_gen`. WIP.
 ada_bar_codes.prj 2024-09-12 gdemont [r81] Updated ObjectAda project file
 ada_bar_codes.txt 2024-09-05 gdemont [r76] Added generation of UPC-A / EAN-13 bar codes
 bar_codes-encode_code_128.adb 2025-02-07 gdemont [r83] Integrated GH Pull Request #3
 bar_codes-encode_dm.adb 2024-09-05 gdemont [r75] Turned private child units for different bar co...
 bar_codes-encode_msi.adb 2025-02-07 gdemont [r83] Integrated GH Pull Request #3
 bar_codes-encode_qr.adb 2024-09-05 gdemont [r75] Turned private child units for different bar co...
 bar_codes-encode_upca_ean13.adb 2024-09-08 gdemont [r77] UPC-A / EAN-13 bar codes: display thick bars wi...
 bar_codes.adb 2024-09-10 gdemont [r79] Added another 1D code
 bar_codes.ads 2025-12-06 gdemont [r90] RC 006
 bar_codes_media.adb 2025-11-30 gdemont [r89] Added white margins to PBM output
 bar_codes_media.ads 2025-11-25 gdemont [r88] Improved SVG rendering
 bc_work.xls 2018-06-29 gdemont [r36] Added QR codes
 build.cmd 2024-02-17 gdemont [r57] Renamed GNAT project file
 clean.cmd 2024-09-05 gdemont [r76] Added generation of UPC-A / EAN-13 bar codes
 readme.md 2025-12-06 gdemont [r92] RC 006 - updated read-me

Read Me

Ada Bar Codes

The project Ada Bar Codes provides a package for generating
various types of bar codes, including 2D bar codes like the QR code,
on different output formats, such as PDF, SVG vector graphics or PNG bitmaps.

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, (5.0, 5.0, 100.0, 100.0), "mm", "Hello"));
      Close (svg);
    end;

Full description in: ada_bar_codes.txt