← 返回命令列表

Linux command

pbmupc 命令

文本

涉及管道、覆盖或删除,执行前请先确认路径和参数。

常用示例

Create a UPC-A barcode image

pbmupc [0] [12345] [67890] [5] > [barcode.pbm]

Create barcode with style 1 (tall guards)

pbmupc -s1 [0] [12345] [67890] [5] > [barcode.pbm]

Create barcode with style 2 (short guards)

pbmupc -s2 [0] [12345] [67890] [5] > [barcode.pbm]

说明

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.

参数

-s1
Style 1 output with tall guard bars (default).
-s2
Style 2 output with short guard bars.

FAQ

What is the pbmupc command used for?

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.

How do I run a basic pbmupc example?

Run `pbmupc [0] [12345] [67890] [5] > [barcode.pbm]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -s1 do in pbmupc?

Style 1 output with tall guard bars (default).