Java Barcode Font Encoder
Class Library
with Source
The Java Barcode Font Encoder Class Library is used
to format linear barcode fonts before printing. This product is
royalty-free with the purchase of a license to one of
IDAutomation's Barcode
Fonts. The library also includes source code (for some methods)
that may be used to generate barcodes with barcode fonts from a
java application.

When
IDAutomation's
self-checking barcode fonts are used, this library or implementation
of the source code is not usually necessary. Additionally, it is
not necessary to use a font encoder when using the
Java Barcode Package,
which generates images without fonts.
The library and source code are royalty-free, provided
it is only used with one of
IDAutomation's licensed
barcode fonts. It supports the following barcode fonts with
the methods listed:
|
Methods for Standard Barcode
Fonts |
|
Barcode Type |
Method(s) & Notes
(Follow links for more information) |
Font to use |
|
Code-128 |
Code128a (DataToEncode)
Code128b (DataToEncode)
Code128b is the recommended method to use. To use
Code-128 Auto or
GS1-128, use the
C128 method with the
Universal
Font.
Code128c (DataToEncode) |
IDAutomationC128 |
|
Code-39 |
Code39 (DataToEncode)
Code39Mod43 (DataToEncode) |
IDAutomationC39 |
|
EAN-13 |
EAN13 (DataToEncode) |
IDAutomationUPCEAN |
|
EAN-8 |
EAN8 (DataToEncode) |
IDAutomationUPCEAN |
| Interleaved
2 of 5 |
I2of5 (DataToEncode)
I2of5Mod10 (DataToEncode,
ReturnType) |
IDAutomationI25 |
|
UPC-A |
UPCa (DataToEncode) |
IDAutomationUPCEAN |
|
UPC-E |
UPCe (DataToEncode) |
IDAutomationUPCEAN |
|
USPS IntelligentMail |
IntelligentMail();
This method is provided in the IntelligentMail.class file.
Source code for this method is only supplied with the purchase
of the
Unlimited Developer License and a signed
Source Code License Agreement. |
IDAutomationPOSTNET
or
IDAutomation_Uni |
|
Methods for the Universal
Barcode Font |
| The
methods listed below
are preceded with IDAutomation_Universal
and are only to be used with the
IDAutomation
Universal Barcode Font Advantage™. Source code for the
methods below may only be provided with the purchase of
the
Unlimited Developer License and a signed
Source Code License Agreement. |
|
Barcode Type |
Method(s) & Notes
(Follow links for more information) |
Font to use |
|
Code-128 |
C128 (DataToEncode,
ApplyTilde)
NOTE: Code128() is the recommended method to use. Code128()
is also used to create
GS1-128.
C128A (DataToEncode)
C128B (DataToEncode)
C128C (DataToEncode) |
IDAutomation_Uni |
| not applicable |
C128HR (DataToEncode,
ApplyTilde)
This method returns text for Code 128 barcodes, such as
with GS1-128. |
Text Font |
|
Code-39 |
C39 (DataToEncode,
N_Dimension,
IncludeCheckDigit) |
IDAutomation_Uni |
|
Codabar |
Codabar (DataToEncode,
N_Dimension, StartChar, StopChar) |
IDAutomation_Uni |
| Interleaved
2 of 5 |
I2of5 (DataToEncode,
N_Dimension,
IncludeCheckDigit) |
IDAutomation_Uni |
|
MSI
/ Plessey |
MSI
(DataToEncode,
N_Dimension,
IncludeCheckDigit) |
IDAutomation_Uni |
|
USPS IntelligentMail |
OneCode();
OneCode produces the same barcode type as IntelligentMail.
This method is also provided in the IntelligentMail.class
file. Source code for this method is only supplied with
the purchase of the
Unlimited Developer License and a signed
Source Code License Agreement. |
IDAutomation_Uni |
|
USPS Postnet |
Postnet (DataToEncode,
IncludeCheckDigit) |
IDAutomation_Uni |
|
USPS Planet |
Planet (DataToEncode,
IncludeCheckDigit) |
IDAutomation_Uni |
|
Methods for the GS1 DataBar
Barcode Font |
| The methods listed
below are preceded with IDAutomation_DataBar_
and are only to be used with the
IDAutomation
GS1 DataBar Font. Source code for the methods below
may only be provided with the purchase of the
Unlimited Developer License and a signed
Source Code License Agreement. |
|
Barcode Type |
Method(s) & Notes
(Follow links for more information) |
Font to use |
|
DataBar |
DataBar (DataToEncode) |
IDAutomation
DataBar 34 |
|
DataBar Expanded |
DataBarExpanded (DataToEncode,
22) |
IDAutomation
DataBar 34 |
|
DataBar Expanded Stacked |
DataBarExpanded (DataToEncode,
Segments) |
IDAutomation
DataBar 34 |
|
DataBar Limited |
DataBarLimited (DataToEncode) |
IDAutomation
DataBar 13 |
|
DataBar Stacked |
DataBarStacked (DataToEncode) |
IDAutomation
DataBar 13 |
|
DataBar Stacked Omnidirectional |
DataBarStackedOmniDirectional (DataToEncode) |
IDAutomation
DataBar 34 |
|
DataBar Truncated |
DataBar (DataToEncode) |
IDAutomation
DataBar 13 |
Additional methods for 2D symbologies are supported
by libraries provided in their respective packages:
To use the methods exposed in the class library, perform the
following:
- Create a directory named com\idautomation from the root
of the classpath. For example, if the classpath is C:\classpath,
the directory would be C:\classpath\com\idautomation .
- Add the LinearFontEncoder.class file to the com\idautomation
directory.
- Use methods of the class to format data to the appropriate
barcode font.
Property Descriptions:
- ApplyTilde - If the ApplyTilde
option is set to True, characters following the tilde may be
used to
perform additional calculations or
encode ASCII characters directly.
- DataToEncode - this string
value represents the data being encoded.
- N_Dimension - determines
the width of the wide bars, which is a multiple of the X dimension.
Valid values are 2, 2.5 and 3. The default is 2. The X dimension
is determined by the font point size.
- IncludeCheckDigit
- a Boolean value that determines whether a check digit should
be automatically calculated and included for the DataToEncode.

Java Source Code Examples:
import com.idautomation.*; public class Code128TestApp { public static void main(String [ ] args) { LinearFontEncoder FontEncoder = new LinearFontEncoder(); String DataToEncode = "123456789012"; System.out.println(FontEncoder.Code128b(DataToEncode)); } }
import com.idautomation.*; public class DataBarTestApp { public static void main(String [ ] args) { DataBar DBFontEncoder = new DataBar(); String DataToEncode = "20012345678909"; System.out.println(DBFontEncoder.IDAutomation_DataBar_DataBarStackedOmniDirectional(DataToEncode)); } }
© Copyright 2006-2009 IDAutomation.com, Inc.,
All Rights Reserved.
Legal Notices.
|
Over 70% of Fortune
100 companies use IDAutomation's products to automate their
businesses.
|
|