zint.1.pmd 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664
  1. % ZINT(1) Version 2.13.0.9
  2. %
  3. % December 2024
  4. # NAME
  5. `zint` - encode data as a barcode image
  6. # SYNOPSIS
  7. | `zint` [`-h` | `--help`]
  8. | `zint` [*options*]
  9. # DESCRIPTION
  10. zint takes input data from the command line or a file to encode in a barcode which is then output to an image file.
  11. Input data is UTF-8, unless `--binary` is specified.
  12. Human Readable Text (HRT) is displayed by default for those barcodes that support HRT, unless `--notext` is specified.
  13. The output image file (specified with `-o` | `--output`) may be in one of these formats: Windows Bitmap (`BMP`),
  14. Enhanced Metafile Format (`EMF`), Encapsulated PostScript (`EPS`), Graphics Interchange Format (`GIF`), ZSoft
  15. Paintbrush (`PCX`), Portable Network Format (`PNG`), Scalable Vector Graphic (`SVG`), or Tagged Image File Format
  16. (`TIF`).
  17. # OPTIONS
  18. `-h`, `--help`
  19. : Print usage information summarizing command line options.
  20. `-b TYPE`, `--barcode=TYPE`
  21. : Set the barcode symbology that will be used to encode the data. *TYPE* is the number or name of the barcode
  22. symbology. If not given, the symbology defaults to 20 (Code 128). To see what types are available, use the `-t` |
  23. `--types` option. Type names are case-insensitive, and non-alphanumerics are ignored.
  24. `--addongap=INTEGER`
  25. : For EAN/UPC symbologies, set the gap between the main data and the add-on. *INTEGER* is in integral multiples of
  26. the X-dimension. The maximum gap that can be set is 12. The minimum is 7, except for UPC-A, when the minimum is 9.
  27. `--batch`
  28. : Treat each line of an input file specified with `-i` | `--input` as a separate data set and produce a barcode
  29. image for each one. The barcode images are outputted by default to numbered filenames starting with "00001.png",
  30. "00002.png" etc., which can be changed by using the `-o` | `--output` option.
  31. `--bg=COLOUR`
  32. : Specify a background (paper) colour where *COLOUR* is in hexadecimal `RRGGBB` or `RRGGBBAA` format or in decimal
  33. `C,M,Y,K` percentages format.
  34. `--binary`
  35. : Treat input data as raw 8-bit binary data instead of the default UTF-8. Automatic code page translation to an ECI
  36. page is disabled, and no validation of the data's character encoding takes place.
  37. `--bind`
  38. : Add horizontal boundary bars (also known as bearer bars) to the symbol. The width of the boundary bars is
  39. specified by the `--border` option. `--bind` can also be used to add row separator bars to symbols stacked with
  40. multiple `-d` | `--data` inputs, in which case the width of the separator bars is specified with the `--separator`
  41. option.
  42. `--bindtop`
  43. : Add a horizontal boundary bar to the top of the symbol. The width of the boundary bar is specified by the
  44. `--border` option.
  45. `--bold`
  46. : Use a bold font for the Human Readable Text (HRT).
  47. `--border=INTEGER`
  48. : Set the width of boundary bars (`--bind` or `--bindtop`) or box borders (`--box`), where *INTEGER* is in integral
  49. multiples of the X-dimension. The default is zero.
  50. `--box`
  51. : Add a box around the symbol. The width of the borders is specified by the `--border` option.
  52. `--cmyk`
  53. : Use the CMYK colour space when outputting to Encapsulated PostScript (EPS) or TIF files.
  54. `--cols=INTEGER`
  55. : Set the number of data columns in the symbol to *INTEGER*. Affects Codablock-F, DotCode, GS1 DataBar Expanded
  56. Stacked (DBAR_EXPSTK), MicroPDF417 and PDF417 symbols.
  57. `--compliantheight`
  58. : Warn if the height specified by the `--height` option is not compliant with the barcode's specification, or if
  59. `--height` is not given, default to the height specified by the specification (if any).
  60. `-d`, `--data=DATA`
  61. : Specify the input *DATA* to encode. The `--esc` option may be used to enter non-printing characters using escape
  62. sequences. The *DATA* should be UTF-8, unless the `--binary` option is given, in which case it can be anything.
  63. `--direct`
  64. : Send output to stdout, which in most cases should be re-directed to a pipe or a file. Use `--filetype` to specify
  65. output format.
  66. `--dmiso144`
  67. : For Data Matrix symbols, use the standard ISO/IEC codeword placement for 144 x 144 (`--vers=24`) sized symbols,
  68. instead of the default "de facto" placement (which rotates the placement of ECC codewords).
  69. `--dmre`
  70. : For Data Matrix symbols, allow Data Matrix Rectangular Extended (DMRE) sizes when considering automatic sizes. See
  71. also `--square`.
  72. `--dotsize=NUMBER`
  73. : Set the radius of the dots in dotty mode (`--dotty`). *NUMBER* is in X-dimensions, and may be floating-point. The
  74. default is 0.8.
  75. `--dotty`
  76. : Use dots instead of squares for matrix symbols. DotCode is always in dotty mode.
  77. `--dump`
  78. : Dump a hexadecimal representation of the symbol's encodation to stdout. The same representation may be outputted
  79. to a file by using a `.txt` extension with `-o` | `--output` or by specifying `--filetype=txt`.
  80. `-e`, `--ecinos`
  81. : Display the table of ECIs (Extended Channel Interpretations).
  82. `--eci=INTEGER`
  83. : Set the ECI code for the input data to *INTEGER*. See `-e` | `--ecinos` for a list of the ECIs available. ECIs are
  84. supported by Aztec Code, Code One, Data Matrix, DotCode, Grid Matrix, Han Xin Code, MaxiCode, MicroPDF417, PDF417,
  85. QR Code, rMQR and Ultracode.
  86. `--embedfont`
  87. : For vector output, embed the font in the file for portability. Currently only available for SVG output.
  88. `--esc`
  89. : Process escape characters in the input data. The escape sequences are:
  90. \0 (0x00) NUL Null character
  91. \E (0x04) EOT End of Transmission
  92. \a (0x07) BEL Bell
  93. \b (0x08) BS Backspace
  94. \t (0x09) HT Horizontal Tab
  95. \n (0x0A) LF Line Feed
  96. \v (0x0B) VT Vertical Tab
  97. \f (0x0C) FF Form Feed
  98. \r (0x0D) CR Carriage Return
  99. \e (0x1B) ESC Escape
  100. \G (0x1D) GS Group Separator
  101. \R (0x1E) RS Record Separator
  102. \\ (0x5C) \ Backslash
  103. \dNNN (NNN) Any 8-bit character where NNN is
  104. decimal (000-255)
  105. \oNNN (0oNNN) Any 8-bit character where NNN is
  106. octal (000-377)
  107. \xNN (0xNN) Any 8-bit character where NN is
  108. hexadecimal (00-FF)
  109. \uNNNN (U+NNNN) Any 16-bit Unicode BMP character
  110. where NNNN is hexadecimal
  111. \UNNNNNN (U+NNNNNN) Any 21-bit Unicode character
  112. where NNNNNN is hexadecimal
  113. `--extraesc`
  114. : For Code 128 only, as well as processing the normal escape sequences above, process the special escape sequences
  115. `\^A`, `\^B`, `\^C` and `\^@` that allow manual switching of Code Sets, and the special escape sequence `\^1` that
  116. inserts an `FNC1` character. The sequence `\@` turns off manual switching. The sequence `\^^` can be used to
  117. encode data that contains special escape sequences.
  118. `--fast`
  119. : Use faster if less optimal encodation or other shortcuts (affects Data Matrix, MicroPDF417, PDF417, QRCODE & UPNQR
  120. only).
  121. `--fg=COLOUR`
  122. : Specify a foreground (ink) colour where *COLOUR* is in hexadecimal `RRGGBB` or `RRGGBBAA` format or in decimal
  123. `C,M,Y,K` percentages format.
  124. `--filetype=TYPE`
  125. : Set the output file type to *TYPE*, which is one of `BMP`, `EMF`, `EPS`, `GIF`, `PCX`, `PNG`, `SVG`, `TIF`, `TXT`.
  126. `--fullmultibyte`
  127. : Use the multibyte modes of Grid Matrix, Han Xin and QR Code for non-ASCII data.
  128. `--gs1`
  129. : Treat input as GS1 compatible data. Application Identifiers (AIs) should be placed in square brackets `"[]"` (but
  130. see `--gs1parens`).
  131. `--gs1nocheck`
  132. : Do not check the validity of GS1 data.
  133. `--gs1parens`
  134. : Process parentheses `"()"` as GS1 AI delimiters, rather than square brackets `"[]"`. The input data must not
  135. otherwise contain parentheses.
  136. `--gssep`
  137. : For Data Matrix in GS1 mode, use `GS` (0x1D) as the GS1 data separator instead of `FNC1`.
  138. `--guarddescent=NUMBER`
  139. : For EAN/UPC symbols, set the height the guard bars descend below the main bars, where *NUMBER* is in X-dimensions.
  140. *NUMBER* may be floating-point.
  141. `--guardwhitespace`
  142. : For EAN/UPC symbols, add quiet zone indicators `"<"` and/or `">"` to HRT where applicable.
  143. `--height=NUMBER`
  144. : Set the height of the symbol in X-dimensions. *NUMBER* may be floating-point.
  145. `--heightperrow`
  146. : Treat height as per-row. Affects Codablock-F, Code 16K, Code 49, GS1 DataBar Expanded Stacked (DBAR_EXPSTK),
  147. MicroPDF417 and PDF417.
  148. `-i`, `--input=FILE`
  149. : Read the input data from *FILE*. Specify a single hyphen (`-`) for *FILE* to read from stdin.
  150. `--init`
  151. : Create a Reader Initialisation (Programming) symbol.
  152. `--mask=INTEGER`
  153. : Set the masking pattern to use for DotCode, Han Xin or QR Code to *INTEGER*, overriding the automatic selection.
  154. `--mirror`
  155. : Use the batch data to determine the filename in batch mode (`--batch`). The `-o` | `--output` option can be used
  156. to specify an output directory (any filename will be ignored).
  157. `--mode=INTEGER`
  158. : For MaxiCode and GS1 Composite symbols, set the encoding mode to *INTEGER*.
  159. For MaxiCode (SCM is Structured Carrier Message, with 3 fields: postcode, 3-digit ISO 3166-1 country code, 3-digit
  160. service code):
  161. 2 SCM with 9-digit numeric postcode
  162. 3 SCM with 6-character alphanumeric postcode
  163. 4 Enhanced ECC for the primary part of the message
  164. 5 Enhanced ECC for all of the message
  165. 6 Reader Initialisation (Programming)
  166. For GS1 Composite symbols (names end in `_CC`, i.e. EANX_CC, GS1_128_CC, DBAR_OMN_CC etc.):
  167. 1 CC-A
  168. 2 CC-B
  169. 3 CC-C (GS1_128_CC only)
  170. `--nobackground`
  171. : Remove the background colour (EMF, EPS, GIF, PNG, SVG and TIF only).
  172. `--noquietzones`
  173. : Disable any quiet zones for symbols that define them by default.
  174. `--notext`
  175. : Remove the Human Readable Text (HRT).
  176. `-o`, `--output=FILE`
  177. : Send the output to *FILE*. When not in batch mode, the default is "out.png" (or "out.gif" if zint built without
  178. PNG support). When in batch mode (`--batch`), special characters can be used to format the output filenames:
  179. ~ Insert a number or 0
  180. # Insert a number or space
  181. @ Insert a number or * (+ on Windows)
  182. Any other Insert literally
  183. `--primary=STRING`
  184. : For MaxiCode, set the content of the primary message. For GS1 Composite symbols, set the content of the linear
  185. symbol.
  186. `--quietzones`
  187. : Add compliant quiet zones for symbols that specify them. This is in addition to any whitespace specified by `-w` |
  188. `--whitesp` or `--vwhitesp`.
  189. `-r`, `--reverse`
  190. : Reverse the foreground and background colours (white on black). Known as "reflectance reversal" or "reversed
  191. reflectance".
  192. `--rotate=INTEGER`
  193. : Rotate the symbol by *INTEGER* degrees, where *INTEGER* can be 0, 90, 270 or 360.
  194. `--rows=INTEGER`
  195. : Set the number of rows for Codablock-F or PDF417 to *INTEGER*. It will also set the minimum number of rows for
  196. Code 16K or Code 49, and the maximum number of rows for GS1 DataBar Expanded Stacked (DBAR_EXPSTK).
  197. `--scale=NUMBER`
  198. : Adjust the size of the X-dimension. *NUMBER* may be floating-point, and is multiplied by 2 (except for MaxiCode)
  199. before being applied. The default scale is 1.
  200. For MaxiCode, the scale is multiplied by 10 for raster output, by 40 for EMF output, and by 2 otherwise.
  201. Increments of 0.5 (half-integers) are recommended for non-MaxiCode raster output (BMP, GIF, PCX, PNG and TIF).
  202. See also `--scalexdimdp` below.
  203. `--scalexdimdp=X[,R]`
  204. : Scale the image according to X-dimension *X* and resolution *R*, where *X* is in mm and *R* is in dpmm (dots per
  205. mm). *X* and *R* may be floating-point. *R* is optional and defaults to 12 dpmm (approximately 300 dpi). *X* may
  206. be zero in which case a symbology-specific default is used.
  207. The scaling takes into account the output filetype, and deals with all the details mentioned above. Units may be
  208. specified for *X* by appending "in" (inch) or "mm", and for *R* by appending "dpi" (dots per inch) or "dpmm" -
  209. e.g. `--scalexdimdp=0.013in,300dpi`.
  210. `--scmvv=INTEGER`
  211. : For MaxiCode, prefix the Structured Carrier Message (SCM) with `"[)>\R01\Gvv"`, where `vv` is a 2-digit *INTEGER*.
  212. `--secure=INTEGER`
  213. : Set the error correction level (ECC) to *INTEGER*. The meaning is specific to the following matrix symbols (all
  214. except PDF417 are approximate):
  215. Aztec Code 1 to 4 (10%, 23%, 36%, 50%)
  216. Grid Matrix 1 to 5 (10% to 50%)
  217. Han Xin 1 to 4 (8%, 15%, 23%, 30%)
  218. Micro QR 1 to 3 (7%, 15%, 25%) (L, M, Q)
  219. PDF417 0 to 8 (2^(INTEGER + 1) codewords)
  220. QR Code 1 to 4 (7%, 15%, 25%, 30%) (L, M, Q, H)
  221. rMQR 2 or 4 (15% or 30%) (M or H)
  222. Ultracode 1 to 6 (0%, 5%, 9%, 17%, 25%, 33%)
  223. `--segN=ECI,DATA`
  224. : Set the *ECI* & *DATA* content for segment N, where N is 1 to 9. `-d` | `--data` must still be given, and counts
  225. as segment 0, its ECI given by `--eci`. Segments must be consecutive.
  226. `--separator=INTEGER`
  227. : Set the height of row separator bars for stacked symbologies, where *INTEGER* is in integral multiples of the
  228. X-dimension. The default is zero.
  229. `--small`
  230. : Use a smaller font for Human Readable Text (HRT).
  231. `--square`
  232. : For Data Matrix symbols, exclude rectangular sizes when considering automatic sizes. See also `--dmre`.
  233. `--structapp=I,C[,ID]`
  234. : Set Structured Append info, where *I* is the 1-based index, *C* is the total number of symbols in the sequence,
  235. and *ID*, which is optional, is the identifier that all symbols in the sequence share. Structured Append is
  236. supported by Aztec Code, Code One, Data Matrix, DotCode, Grid Matrix, MaxiCode, MicroPDF417, PDF417, QR Code and
  237. Ultracode.
  238. `-t`, `--types`
  239. : Display the table of barcode types (symbologies). The numbers or names can be used with `-b` | `--barcode`.
  240. `--textgap=NUMBER`
  241. : Adjust the gap between the barcode and the Human Readable Text (HRT). *NUMBER* is in X-dimensions, and may be
  242. floating-point. Maximum is 10 and minimum is -5. The default is 1.
  243. `--vers=INTEGER`
  244. : Set the symbol version (size, check digits, other options) to *INTEGER*. The meaning is symbol-specific.
  245. For most matrix symbols, it specifies size:
  246. Aztec Code 1 to 36 (1 to 4 compact)
  247. 1 15x15 13 53x53 25 105x105
  248. 2 19x19 14 57x57 26 109x109
  249. 3 23x23 15 61x61 27 113x113
  250. 4 27x27 16 67x67 28 117x117
  251. 5 19x19 17 71x71 29 121x121
  252. 6 23x23 18 75x75 30 125x125
  253. 7 27x27 19 79x79 31 131x131
  254. 8 31x31 20 83x83 32 135x135
  255. 9 37x37 21 87x87 33 139x139
  256. 10 41x41 22 91x91 34 143x143
  257. 11 45x45 23 95x95 35 147x147
  258. 12 49x49 24 101x101 36 151x151
  259. Code One 1 to 10 (9 and 10 variable width) (WxH)
  260. 1 16x18 6 70x76
  261. 2 22x22 7 104x98
  262. 3 28x28 8 148x134
  263. 4 40x42 9 Wx8
  264. 5 52x54 10 Wx16
  265. Data Matrix 1 to 48 (31 to 48 DMRE) (HxW)
  266. 1 10x10 17 72x72 33 8x80
  267. 2 12x12 18 80x80 34 8x96
  268. 3 14x14 19 88x88 35 8x120
  269. 4 16x16 20 96x96 36 8x144
  270. 5 18x18 21 104x104 37 12x64
  271. 6 20x20 22 120x120 38 12x88
  272. 7 22x22 23 132x132 39 16x64
  273. 8 24x24 24 144x144 40 20x36
  274. 9 26x26 25 8x18 41 20x44
  275. 10 32x32 26 8x32 42 20x64
  276. 11 36x36 28 12x26 43 22x48
  277. 12 40x40 28 12x36 44 24x48
  278. 13 44x44 29 16x36 45 24x64
  279. 14 48x48 30 16x48 46 26x40
  280. 15 52x52 31 8x48 47 26x48
  281. 16 64x64 32 8x64 48 26x64
  282. Grid Matrix 1 to 13
  283. 1 18x18 6 78x78 11 138x138
  284. 2 30x30 7 90x90 12 150x150
  285. 3 42x42 8 102x102 13 162x162
  286. 4 54x54 9 114x114
  287. 5 66x66 10 126x126
  288. Han Xin 1 to 84
  289. 1 23x23 29 79x79 57 135x135
  290. 2 25x25 30 81x81 58 137x137
  291. 3 27x27 31 83x83 59 139x139
  292. 4 29x29 32 85x85 60 141x141
  293. 5 31x31 33 87x87 61 143x143
  294. 6 33x33 34 89x89 62 145x145
  295. 7 35x35 35 91x91 63 147x147
  296. 8 37x37 36 93x93 64 149x149
  297. 9 39x39 37 95x95 65 151x151
  298. 10 41x41 38 97x97 66 153x153
  299. 11 43x43 39 99x99 67 155x155
  300. 12 45x45 40 101x101 68 157x157
  301. 13 47x47 41 103x103 69 159x159
  302. 14 49x49 42 105x105 70 161x161
  303. 15 51x51 43 107x107 71 163x163
  304. 16 53x53 44 109x109 72 165x165
  305. 17 55x55 45 111x111 73 167x167
  306. 18 57x57 46 113x113 74 169x169
  307. 19 59x59 47 115x115 75 171x171
  308. 20 61x61 48 117x117 76 173x173
  309. 21 63x63 49 119x119 77 175x175
  310. 22 65x65 50 121x121 78 177x177
  311. 23 67x67 51 123x123 79 179x179
  312. 24 69x69 52 125x125 80 181x181
  313. 25 71x71 53 127x127 81 183x183
  314. 26 73x73 54 129x129 82 185x185
  315. 27 75x75 55 131x131 83 187x187
  316. 28 77x77 56 133x133 84 189x189
  317. Micro QR 1 to 4 (M1, M2, M3, M4)
  318. 1 11x11 3 15x15
  319. 2 13x13 4 17x17
  320. QR Code 1 to 40
  321. 1 21x21 15 77x77 29 133x133
  322. 2 25x25 16 81x81 30 137x137
  323. 3 29x29 17 85x85 31 141x141
  324. 4 33x33 18 89x89 32 145x145
  325. 5 37x37 19 93x93 33 149x149
  326. 6 41x41 20 97x97 34 153x153
  327. 7 45x45 21 101x101 35 157x157
  328. 8 49x49 22 105x105 36 161x161
  329. 9 53x53 23 109x109 37 165x165
  330. 10 57x57 24 113x113 38 169x169
  331. 11 61x61 25 117x117 39 173x173
  332. 12 65x65 26 121x121 40 177x177
  333. 13 69x69 27 125x125
  334. 14 73x73 28 129x129
  335. rMQR 1 to 38 (33 to 38 automatic width) (HxW)
  336. 1 7x43 14 11x77 27 15x139
  337. 2 7x59 15 11x99 28 17x43
  338. 3 7x77 16 11x139 29 17x59
  339. 4 7x99 17 13x27 30 17x77
  340. 5 7x139 18 13x43 31 17x99
  341. 6 9x43 19 13x59 32 17x139
  342. 7 9x59 20 13x77 33 7xW
  343. 8 9x77 21 13x99 34 9xW
  344. 9 9x99 22 13x139 35 11xW
  345. 10 9x139 23 15x43 36 13xW
  346. 11 11x27 24 15x59 37 15xW
  347. 12 11x43 25 15x77 38 17xW
  348. 13 11x59 26 15x99
  349. For a number of linear symbols, it specifies check character options ("hide" or "hidden" means don't show in HRT,
  350. "visible" means do display in HRT):
  351. C25IATA 1 or 2 (add visible or hidden check digit)
  352. C25IND ditto
  353. C25INTER ditto
  354. C25LOGIC ditto
  355. C25STANDARD ditto
  356. Codabar 1 or 2 (add hidden or visible check digit)
  357. Code 11 0 to 2 (2 visible check digits to none)
  358. 0 (default 2 visible check digits)
  359. 1 (1 visible check digit)
  360. 2 (no check digits)
  361. Code 39 1 or 2 (add visible or hidden check digit)
  362. Code 93 1 (hide the default check characters)
  363. EXCODE39 1 or 2 (add visible or hidden check digit)
  364. LOGMARS 1 or 2 (add visible or hidden check digit)
  365. MSI Plessey 0 to 6 (none to various visible options)
  366. 1, 2 (mod-10, mod-10 + mod-10)
  367. 3, 4 (mod-11 IBM, mod-11 IBM + mod-10)
  368. 5, 6 (mod-11 NCR, mod-11 NCR + mod-10)
  369. +10 (hide)
  370. For a few other symbologies, it specifies other characteristics:
  371. Channel Code 3 to 8 (no. of channels)
  372. DAFT 50 to 900 (permille tracker ratio)
  373. DPD 1 (relabel)
  374. PZN 1 (PZN7 instead of default PZN8)
  375. Ultracode 2 (revision 2)
  376. VIN 1 (add international prefix)
  377. `-v`, `--version`
  378. : Display zint version.
  379. `--vwhitesp=INTEGER`
  380. : Set the height of vertical whitespace above and below the barcode, where *INTEGER* is in integral multiples of the
  381. X-dimension.
  382. `-w`, `--whitesp=INTEGER`
  383. : Set the width of horizontal whitespace either side of the barcode, where *INTEGER* is in integral multiples of the
  384. X-dimension.
  385. `--werror`
  386. : Convert all warnings into errors.
  387. # EXIT STATUS
  388. `0`
  389. : Success (including when given informational options `-h` | `--help`, `-e` | `--ecinos`, `-t` | `--types`, `-v` |
  390. `--version`).
  391. `1`
  392. : Human Readable Text was truncated (maximum 199 bytes) (`ZINT_WARN_HRT_TRUNCATED`)
  393. `2`
  394. : Invalid option given but overridden by Zint (`ZINT_WARN_INVALID_OPTION`)
  395. `3`
  396. : Automatic ECI inserted by Zint (`ZINT_WARN_USES_ECI`)
  397. `4`
  398. : Symbol created not compliant with standards (`ZINT_WARN_NONCOMPLIANT`)
  399. `5`
  400. : Input data wrong length (`ZINT_ERROR_TOO_LONG`)
  401. `6`
  402. : Input data incorrect (`ZINT_ERROR_INVALID_DATA`)
  403. `7`
  404. : Input check digit incorrect (`ZINT_ERROR_INVALID_CHECK`)
  405. `8`
  406. : Incorrect option given (`ZINT_ERROR_INVALID_OPTION`)
  407. `9`
  408. : Internal error (should not happen) (`ZINT_ERROR_ENCODING_PROBLEM`)
  409. `10`
  410. : Error opening output file (`ZINT_ERROR_FILE_ACCESS`)
  411. `11`
  412. : Memory allocation (malloc) failure (`ZINT_ERROR_MEMORY`)
  413. `12`
  414. : Error writing to output file (`ZINT_ERROR_FILE_WRITE`)
  415. `13`
  416. : Error counterpart of warning if `--werror` given (`ZINT_ERROR_USES_ECI`)
  417. `14`
  418. : Error counterpart of warning if `--werror` given (`ZINT_ERROR_NONCOMPLIANT`)
  419. `15`
  420. : Error counterpart of warning if `--werror` given (`ZINT_ERROR_HRT_TRUNCATED`)
  421. # EXAMPLES
  422. Create "out.png" (or "out.gif" if zint built without PNG support) in the current directory, as a Code 128 symbol.
  423. ```bash
  424. zint -d 'This Text'
  425. ```
  426. Create "qr.svg" in the current directory, as a QR Code symbol.
  427. ```bash
  428. zint -b QRCode -d 'This Text' -o 'qr.svg'
  429. ```
  430. Use batch mode to read from an input file "ean13nos.txt" containing a list of 13-digit GTINs, each on a separate line,
  431. to create a series of EAN-13 barcodes, formatting the output filenames to "ean001.gif", "ean002.gif" etc. using the
  432. special character "~".
  433. ```bash
  434. zint -b EANX --batch -i 'ean13nos.txt' -o 'ean~~~.gif'
  435. ```
  436. # BUGS
  437. Please send bug reports to https://sourceforge.net/p/zint/tickets/.
  438. # SEE ALSO
  439. Full documention for `zint` (and the API `libzint` and the GUI `zint-qt`) is available from
  440. https://zint.org.uk/manual/
  441. and at
  442. https://sourceforge.net/p/zint/docs/manual.txt
  443. # CONFORMING TO
  444. Zint is designed to be compliant with a number of international standards, including:
  445. ISO/IEC 24778:2008, ANSI/AIM BC12-1998, EN 798:1996,
  446. AIM ISS-X-24 (1995), ISO/IEC 15417:2007, EN 12323:2005,
  447. ISO/IEC 16388:2007, ANSI/AIM BC6-2000, ANSI/AIM BC5-1995,
  448. AIM USS Code One (1994), ISO/IEC 16022:2006, ISO/IEC 21471:2019,
  449. ISO/IEC 15420:2009, AIMD014 (v 1.63) (2008), ISO/IEC 24723:2010,
  450. ISO/IEC 24724:2011, ISO/IEC 20830:2021, ISO/IEC 16390:2007,
  451. ISO/IEC 16023:2000, ISO/IEC 24728:2006, ISO/IEC 15438:2015,
  452. ISO/IEC 18004:2015, ISO/IEC 23941:2022, AIM ITS/04-023 (2022)
  453. # COPYRIGHT
  454. Copyright © 2024 Robin Stuart. Released under GNU GPL 3.0 or later.
  455. # AUTHOR
  456. Robin Stuart <robin@zint.org.uk>