LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

pbmupc

Create UPC-A barcode PBM images

TLDR

Create a UPC-A barcode image
$ pbmupc [0] [12345] [67890] [5] > [barcode.pbm]
copy
Create barcode with style 1 (tall guards)
$ pbmupc -s1 [0] [12345] [67890] [5] > [barcode.pbm]
copy
Create barcode with style 2 (short guards)
$ pbmupc -s2 [0] [12345] [67890] [5] > [barcode.pbm]
copy

SYNOPSIS

pbmupc [-s1 | -s2] type manufacturer product check

DESCRIPTION

pbmupc creates UPC-A (Universal Product Code) barcode images in PBM (Portable Bitmap) format. It takes the four components of a 12-digit UPC-A code as separate arguments: the number system type digit, a five-digit manufacturer code, a five-digit product code, and the check digit.The output PBM image can be converted to other formats using Netpbm conversion tools. UPC-A barcodes are the standard retail barcode format used in the United States and Canada.

PARAMETERS

type

Single digit indicating the number system type (typically 0 for standard UPC-A).
manufacturer
Five-digit manufacturer code.
product
Five-digit product code.
check
Single check digit (modulo-10 checksum of the other 11 digits).
-s1
Style 1 output with tall guard bars (default).
-s2
Style 2 output with short guard bars.

INSTALL

sudo apt install netpbm
copy
sudo dnf install netpbm
copy
sudo pacman -S netpbm
copy
sudo apk add netpbm
copy
sudo zypper install netpbm
copy
brew install netpbm
copy
nix profile install nixpkgs#netpbm
copy

CAVEATS

Only generates UPC-A format barcodes. The check digit is not validated or computed automatically; the user must supply the correct value. Part of the Netpbm toolkit.

HISTORY

pbmupc is part of the Netpbm package, which originated from Jef Poskanzer's PBMplus toolkit in the late 1980s.

SEE ALSO

pbm(5), netpbm(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid