man > pbmupc(1)

⚡ TLDR: pbmupc (tldr-pages)

Generate a PBM image of a Universal Product Code (UPC).

  • Generate a UPC image for the specified product type, manufacturer code, and product code
    pbmupc {{product_type}} {{manufacturer_code}} {{product_code}} > {{path/to/output.pbm}}
  • Use an alternative style that does not display the checksum
    pbmupc -s2 {{product_type}} {{manufacturer_code}} {{product_code}} > {{path/to/output.pbm}}
Pbmupc User Manual(1)                  General Commands Manual                 Pbmupc User Manual(1)

NAME
       pbmupc - create a Universal Product Code PBM image


SYNOPSIS
       pbmupc

       [-s1 | -s2] type manufacturer product


DESCRIPTION
       This program is part of Netpbm(1).

       pbmupc generates an image of a Universal Product Code symbol.  The three arguments are: a one
       digit product type, a five digit manufacturer code, and a five digit product code.  For exam‐
       ple, "0 72890 00011" is the code for Heineken.

       pbmupc  produces  an image 230 bits wide and 175 bits high.  If you want a different size run
       the output through pamscale.



OPTIONS
       In addition to the options common to all programs based on libnetpbm  (most  notably  -quiet,
       see  Common Options ), pbmupc recognizes the following command line options:

       The -s1 and -s2 options select the style of UPC to generate.  The default, -s1, looks more or
       less like this:

        ||||||||||||||||
        ||||||||||||||||
        ||||||||||||||||
        ||||||||||||||||
       0||12345||67890||5


       The other style, -s2, puts the product type digit higher up, and doesn't display the checksum
       digit:

        ||||||||||||||||
        ||||||||||||||||
       0||||||||||||||||
        ||||||||||||||||
        ||12345||67890||




SEE ALSO
       pamscale(1) pbm(1)


AUTHOR
       Copyright (C) 1989 by Jef Poskanzer.

DOCUMENT SOURCE
       This  manual  page  was  generated by the Netpbm tool 'makeman' from HTML source.  The master
       documentation is at

              http://netpbm.sourceforge.net/doc/pbmupc.html

netpbm documentation                        29 April 2015                      Pbmupc User Manual(1)

Generated by phpman v4.12.13 · Markdown · JSON Author: Che Dong Under GNU General Public License
2026-10-25 23:38 @216.73.217.55
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!