net.sourceforge.barbecue
Class Main
java.lang.Object
net.sourceforge.barbecue.Main
- public class Main
- extends java.lang.Object
Provide a command line interface to simulate GNU barcode. Options available are
Command Line Options
- -b barcode_data. [Required] Specify the barcode data. If the EAN128 encoding is
specified, then this data will be parsed (See EAN128 parsing below).
- -o filename. Write the barcode output to the specified file.
- -e encoding. Use the specified encoding for the barcode.
Options available are:
- -E. Write the output as Encapsulated Postscript (EPS). The default
output format is a PNG image.
- -label label_file. Write the human readable text output to the specified file.
This is useful for situations where barbecue calculates a check digit.
EAN 128 Parsing
Barbecue will parse barcode data if the encoding is specified as ean128. The
application identifiers should be enclosed in round brackets. For example:
(01)0941919600001(10)012004(21)000001
Specifies a GTIN (application id 01) with a lot number of 012004 and an item number
of 000001.
Examples
java -jar barbecue.jar -e ean128 -b "(01)0941919600001(10)012004(21)000001" -E -o test.eps
Constructor Summary |
Main()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Main
public Main()
main
public static void main(java.lang.String[] args)
Usage
public static void Usage()
outputPNG
public static void outputPNG(Barcode barcode,
java.io.OutputStream fos)
outputSVG
public static void outputSVG(Barcode barcode,
java.io.OutputStream fos)
outputEPS
public static void outputEPS(Barcode barcode,
java.io.OutputStream fos)
Copyright © 2003-2007 barbecue.sourceforge.net. All Rights Reserved.