Skip to content

zertovitch/ada-bar-codes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

====

Full description in: ada_bar_codes.txt