We use cookies to provide you with the best experience and functionality on our website. By continuing to use the site, you are agreeing to our use of cookies.   

Barcode command line

Generate barcodes at the command line

Barcodes an der Kommandozeile You can use the ActiveBarcode command line tool to create barcode images files directly from the command line. E.g. use it in batch or script programs.

The commandline tool is included in the ActiveBarcode program package. When you setup ActiveBarcode to your system, the commandline tool also will be installed. You can find the tool named barcodeimage.wsf in the folder you installed ActiveBarcode to. General this is c:\programs\ActiveBarcode.

Highly accurate barcodes
Highly accurate barcodes
At the command line
At the command line
Bitmaps and vector graphics
Bitmaps and vector graphics
Automation
Automation
Versatile in use
Versatile in use

Examples

Example An example: The following call of the tool will create a 400x200 pixels sized PNG image file named ean.png with an EAN-13 barcode encoding "192837465012".
barcodeimage ean.png text=192837465012 typename=ean13 width=400 height=200
One more example: The following call of the tool will create a 500x100 pixels sized PNG image file named code128.bmp with an Code 128 barcode encoding "Hello World".
barcodeimage code128.bmp "text=Hello World" type=14 width=500 height=100
Powershell: If you want to use 'barcodeimage' with the Microsoft Windows PowerShell, you have to call it using 'cscript'. See this example:
cscript barcodeimage.wsf code128.bmp "text=Hello World" type=14 width=500 height=100

Command line parameters for the console

Usage:
barcodeimage filename [Parameter]
The following paramters can be used:

-text=


Example: -text=123456789012
characters to be encoded.
You can enter control codes in human readable form like this: {CR}, {LF}, ...

-type=


Example: -type=0
barcode type, referenced by an indexed number

-width=


Example: -width=500
width in pixels

-height=


Example: -height=500
height in pixels

-alignment=


Example: -alignment=2
Alignment
1=left
2=center
3=right

-borderwidth=


Example: -borderwidth=10
borderwidth in pixels

-borderheight=


Example: -borderheight=1
borderheight in pixels

-notchheightinpercent=


Example: -notchheightinpercent=25
the notch height in %

-showtext=off


Example: -showtext=off
no textline under the code

-forecolor=


Example: -foreground=000000
(example is black)
sets the foreground color
hexadecimal RGB as RRGGBB

-backcolor=


Example: -background=FFFFFF
(example is white)
sets the background color
hexadecimal RGB as RRGGBB

-fontname=


Example: -fontname=arial
font for the text line

-fontsize=


Example: -fontsize=8
font size

-fontbold=


Example: -fontbold=on
font bold (on/off)

-fontitalic=


Example: -fontitalic=on
font italic (on/off)

-fontunderline=


Example: -fontunderline=on
font underline (on/off)

-fontstrikeout=


Example: -fontstrikeout=on
font strikeout (on/off)

-filetype=


Example: -filetype=bmp
file type of image
(valid values: bmp, jpg, png, tif, tga, gif, wbm, pbm, pgm, ppm, xpm, wmf, emf)
Default: auto detect by extension of filename

-colordepth=


Example: -colordepth=24
colordepth of the image file
(valid values: 1,8,16,24,36)

-flags=


Example: -flags=0x80
flags for the image file

-angle=


Example: -angle=180
rotates the image file
(valid values: 0-359)

-dpi=


Example: -dpi=300
resolution in DPI for jpg, png, tif & bmp files

-echo=


Example: -echo=off
-echo=errors
-echo=verbose
off: display no messages
errors: display only errors
verbose:display all messages and open barcode in ImageView

Search this site with Bing:
| Home | Shop | Download | E-Mail | Datenschutz | Imprint | Version 6.2.0 |
Web DesignszBubble 3.0.10.448
Web design & developement:
www.frank-horn.com

Copyright
Frank HornActiveBarcode Generator App
Web design
Documentation
Copyright Frank Horn
&
Lars SchenkActiveBarcode Object
Web- & server component
Command line
Copyright Lars Schenk

All trademarks and product names mentioned are the property of their respective owners.