TBarCode/X is a comprehensive barcode toolkit for Linux, UNIX, and Mac OS X. The TBarCode control can be hooked to the user’s print queue or CUPS on Linux/Unix systems to create bar codes from the user’s documents and automatically print them out. Alternatively, bar codes can be saved to EPS (Postscript) or PCL (HPGL) files.

Download the latest version of TBarCode/X for free

TBarCode/X FAQ

Q1: How to generate GS1 data matrix (EPS or bitmap)?

The following example shows how to create a GS1 data matrix image from the command line. Sample does not include spool filtration operation:

The output is in EPS format, the GS1 data matrix is marked by FNC1 in the first position, and the module width (point size) is 0.508 mm

tbarcode -fPs-obarcode. eps-b71 --DMformat= 1-eon-m0.508-d"0112345678901231"Copy the code

Output GIF bitmap format, 300dpi, same Settings as above

tbarcode -fImage-igif-obarcode.gif-b71 --DMformat= 1-eon-m0.508 --dpi=300-d"0112345678901231"Copy the code

If you need to match the module width exactly to the pixel grid, you can use the — OptimalWidth parameter

tbarcode -fImage-igif-obarcode.gif-b71 --DMformat= 1-eon-m0.508 --dpi=300 -- OptimalWidth-d"0112345678901231"Copy the code

For label printers with a resolution of 203 dpi(heat transfer), you should adjust the module width for the 203 dpi grid.

tbarcode -fImage-igif-obarcode.gif-b71 --DMformat= 1-eon-m0.500493 --dpi=203 -- OptimalWidth-d"0112345678901231"Copy the code

The FNC1 field separator (for variable-length fields) is inserted into the data string as \ F. Finally, you must encode it as \ or \\ (for example \\ F) on the command line.

tbarcode -fImage-igif-obarcode.gif-b71 --DMformat = 1-eon-m0.508 --dpi = 300-d"VVVVVV \ Fnnnnnn" (v... Variable length data - using AI)Copy the code

For inkjet printers, you can reduce the bar width to avoid ink blurring. When module width is reduced by 10% :

--reduction = 10 --reductionunit = percCopy the code

These examples use sample values of the data matrix size (module width). Larger bar code symbols can be used to improve readability. We need to pay attention to the correct Settings according to the printer specification (DPI, dot size).

Q2: How do I set the PDF417 line height?

Let’s look at some examples. The following example shows how to create a PDF417 bitmap file with a specific line height. Sample does not include spool filtration operation.

Output JPG bitmap format, 96 dpi, module width = 1 pixel, row height = 3 pixels, data column = 5

tbarcode -fJPG -b55 --dpi= 96-m0.264583-h20 --PDFcols=5 --PDFrowheight=0.79375-d"ABCDEFG1234567890"Copy the code

Same as above, but with a reduced row height/module width ratio (2:1).

tbarcode -fJPG -b55 --dpi= 96-m0.264583-h20 --PDFcols=5 --PDFrowheight=0.52917-d"ABCDEFG1234567890"Copy the code

Note: The height parameter must be specified, although it does not affect the resulting bar code height.

Q3: How do bar codes move down (PCL coordinates)?

The PCL coordinate system is drawn from top to bottom, and therefore from cursor position down. If you want to draw up from the current cursor position, you can adjust it in the tbarcode-.conf file. Insert a new line into the tbarcode-.conf file:

# set origin of barcode to left bottom corner of bounding rectangle
origin=BOTTOMCopy the code

Q4: Which barcode product is best for my environment?

Tec-it offers three different solutions for bar code generation in SAP. Each solution has its own unique advantages and characteristics.

TBarCode/Direct

If your company primarily uses PostScript® compatible printers, t bar Code /Direct is the best solution. No middleware, central installation, all printers (with PostScript).

TBarCode/SAPwin

This barcode DLL is recommended for Microsoft®Windows environments where you can print centrally through a print server with SAPSprint (SAP’s back-end software) or a SAPGUI client (front-end printing). Any printer that uses a Windows driver can connect. The barcode DLL is also your solution of choice when using SWINCF or other CF device types for Unicode printing.

TBarCode/X

TBarCode/X is a comprehensive barcode software solution for UNIX®, Linux®, and Mac OS X® environments. TBarCode/X can be installed on the Spool system of the print server (or the SAP server itself). Suitable for PCL and PostScript® printers. Existing PCL printer device types can be reused without changing Windows drivers.