On this page information on the use, generation, and supply of ASN-Barcodes shall be given.
Information on the Use of ASN-Barcodes/QR-Codes
Best have a look at the barcode-Section from the configuration.
Note on small (9mm x 9mm) barcodes
When using small barcodes like on Avery L4731REV and a scanning-resolution of 300dpi, set the Options PAPERLESS_CONSUMER_BARCODE_UPSCALE=1.5 and PAPERLESS_CONSUMER_BARCODE_DPI=600.
Sources to buy printed Labels
None mentioned yet. I found them very expensive in comparison to remvable labes and printing.
Generation of ASN-Barcodes/QR-Codes for print-labels
Avery L4731REV-Labels (25.4mm x 10mm)
- Here, an online tool to generate lables for Avery L4731REV can be found (by Tobias L. Maier)
- Latex Script to generate labels for Avery Avery L4731REV, see below
Latex-Document for L4731REV Removable Labels
This script was tested on Linux using texlive. It should work on any up-to-date Latex setup or online-Latex editors. Just set the first ASN that should be used (ASNcnt
) and the Number of pages that shall be generated (genPages
).
Hint: The script takes soooooome time to run. Best test with one page first to get a feeling and don't freak out. :)
% ASN-QR Codes for Avery Multipurpose Removable Labels L4731REV 25.4 x 10 mm x 189 Provided under CC0 1.0 Universal
\documentclass[a4paper,9pt]{article}
\usepackage[a4paper,left=8.5mm, top=13.5mm, ,bottom=2mm, right=2mm, nomarginpar]{geometry}
\usepackage{graphicx}
\usepackage{array}
\usepackage{helvet} % Use Helvetica as sans-serif font
\renewcommand{\familydefault}{\sfdefault} % Set sans-serif as default
\usepackage{forloop}
\usepackage{qrcode}
\pagestyle{empty} % Remove headers and footers
% Define Counters
\newcounter{ASNcnt} % Counter for ASN-Number
\newcounter{PAGEcnt} % Counter used for pages
\newcounter{genPages} % Counter for Number of pages to generate
\newcounter{COLUMNcnt} % Counter used for Columns
\newcounter{ROWcnt} % Counter used for Rows
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%% Define your variables here %%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setcounter{ASNcnt}{1} % Set start ASN-Number
\setcounter{genPages}{1} % Set the number of pages to generate
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%% Leave everything else be %%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Set all all additional length inside the table to 0
\renewcommand{\arraystretch}{0}
\setlength{\extrarowheight}{0.0mm}
\setlength{\arraycolsep}{0.0mm}
\setlength\tabcolsep{0pt}
% Function for padding with leading zeros
\newcommand{\padASN}{%
\ifnum\value{ASNcnt}<10 0000\arabic{ASNcnt}
\else%
\ifnum\value{ASNcnt}<100 000\arabic{ASNcnt}
\else%
\ifnum\value{ASNcnt}<1000 00\arabic{ASNcnt}
\else%
\ifnum\value{ASNcnt}<10000 0\arabic{ASNcnt}
\else%
\arabic{ASNcnt}
\fi
\fi%
\fi%
\fi%
}%
% Generate the texstring ASN with padded value
\newcommand{\ASN}{
ASN\padASN
}
% Increase ASN-Counter, Indent QR-Code by 0.8mm, print QR-Code, Add ASN-Text close to QR-Code
\newcommand{\nextQR}{
\stepcounter{ASNcnt}
{\hspace{0.8mm}\qrcode[height=9mm]{\ASN}\footnotesize\hspace{-2pt}\ASN}
}
% Adapt for some of by 1 things
\addtocounter{ASNcnt}{-1} % Decrease ASN-Counter by 1
\stepcounter{genPages} % Increase genPages by 1 to allow fof < comparison
\begin{document}
\forloop{PAGEcnt}{1}{\value{PAGEcnt} < \value{genPages}}{% Generated from "page" 1 to defined value
\noindent
\begin{tabular}{*{7}{m{28mm}}}% Column-Width consists of Sticker-width (25.4mm) + whitespace in between!
\forloop{ROWcnt}{1}{\value{ROWcnt} < 28}{% Generate 27 rows
\forloop{COLUMNcnt}{1}{\value{COLUMNcnt} < 7}{% Generate the first 6 cells and add 0.5mm vertical-space before QR
\vspace{0.5mm}\nextQR &}%
\nextQR \\\vspace{0.5mm}% Generate last cell and add 0.5mm vertical-space below
}%
\end{tabular}
\clearpage % Clear page, otherwise all tables will be generated upfront and Tex main memory size will be exceeded
}
\end{document}
Feel free to contribute to the wiki pages - enhance and extend the content!
Also browse Discussions & connect in Matrix chat.