Created
June 8, 2016 19:27
-
-
Save tlinkner/28087616e738d3d7c14cc8191dd7b511 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install | |
brew install zint | |
# EAN | |
zint --directeps --height="30" --barcode="13" --data="123456789104" > 1234-ean.eps | |
# UPC | |
zint --directeps --height="30" --barcode="34" --data="12345678910" > 1234-upc.eps | |
# Help | |
-h, --help Display this message. | |
-t, --types Display table of barcode types | |
-i, --input=FILE Read data from FILE. | |
-o, --output=FILE Write image to FILE. (default is out.png) | |
-d, --data=DATA Barcode content. | |
-b, --barcode=NUMBER Number of barcode type (default is 20 (=Code128)). | |
--height=NUMBER Height of symbol in multiples of x-dimension. | |
-w, --whitesp=NUMBER Width of whitespace in multiples of x-dimension. | |
--border=NUMBER Width of border in multiples of x-dimension. | |
--box Add a box. | |
--bind Add boundary bars. | |
-r, --reverse Reverse colours (white on black). | |
--fg=COLOUR Specify a foreground colour. | |
--bg=COLOUR Specify a background colour. | |
--scale=NUMBER Adjust size of output image. | |
--directpng Send PNG output to stdout | |
--directeps Send EPS output to stdout | |
--directsvg Send SVG output to stdout | |
--dump Dump binary data to stdout | |
--rotate=NUMBER Rotate symbol (PNG output only). | |
--cols=NUMBER (PDF417) Number of columns. | |
--vers=NUMBER (QR Code) Version | |
--secure=NUMBER (PDF417 and QR Code) Error correction level. | |
--primary=STRING (Maxicode and Composite) Structured primary message. | |
--mode=NUMBER (Maxicode and Composite) Set encoding mode. | |
--gs1 Treat input as GS1 data | |
--binary Treat input as Binary data | |
--notext Remove human readable text | |
--square Force Data Matrix symbols to be square | |
--init Create reader initialisation symbol (Code 128) | |
--smalltext Use half-size text in PNG images | |
--batch Treat each line of input as a separate data set | |
# Barcode Types | |
1: Code 11 51: Pharma One-Track 90: KIX Code | |
2: Standard 2of5 52: PZN 92: Aztec Code | |
3: Interleaved 2of5 53: Pharma Two-Track 93: DAFT Code | |
4: IATA 2of5 55: PDF417 97: Micro QR Code | |
6: Data Logic 56: PDF417 Trunc 98: HIBC Code 128 | |
7: Industrial 2of5 57: Maxicode 99: HIBC Code 39 | |
8: Code 39 58: QR Code 102: HIBC Data Matrix | |
9: Extended Code 39 60: Code 128-B 104: HIBC QR Code | |
13: EAN 63: AP Standard Customer 106: HIBC PDF417 | |
16: GS1-128 66: AP Reply Paid 108: HIBC MicroPDF417 | |
18: Codabar 67: AP Routing 112: HIBC Aztec Code | |
20: Code 128 68: AP Redirection 128: Aztec Runes | |
21: Leitcode 69: ISBN 129: Code 23 | |
22: Identcode 70: RM4SCC 130: Comp EAN | |
23: Code 16k 71: Data Matrix 131: Comp GS1-128 | |
24: Code 49 72: EAN-14 132: Comp Databar-14 | |
25: Code 93 75: NVE-18 133: Comp Databar Ltd | |
28: Flattermarken 76: Japanese Post 134: Comp Databar Ext | |
29: Databar-14 77: Korea Post 135: Comp UPC-A | |
30: Databar Limited 79: Databar-14 Stack 136: Comp UPC-E | |
31: Databar Extended 80: Databar-14 Stack Omni 137: Comp Databar-14 Stack | |
32: Telepen Alpha 81: Databar Extended Stack 138: Comp Databar Stack Omni | |
34: UPC-A 82: Planet 139: Comp Databar Ext Stack | |
37: UPC-E 84: MicroPDF 140: Channel Code | |
40: Postnet 85: USPS OneCode 141: Code One | |
47: MSI Plessey 86: UK Plessey 142: Grid Matrix | |
49: FIM 87: Telepen Numeric | |
50: Logmars 89: ITF-14 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment