Home

TBarCode/X User Manual V10

image

Contents

1. Short Long Description s barcodesettings Shows a help text for all barcode settings help Shows a help text for general option shorthelp Shows a short help text version Shows the version information Table 5 Informative Output 7 5 Barcode Settings You can view the available parameters for barcode settings with tbarcode barcodesettings tharcode Please be aware that the following bar code settings are used by TBarCode in command line mode as well as in spool filter mode filter control sequence prefix Page 29 of 93 WWW TEC IT COM 7 5 1 Barcode Type Barcode Data These parameters are used for specifying the general barcode settings Short Long Description b barcode NUMBER Sets the type of barcode The NUMBER of the barcode type can be looked up in Section C 1 Barcode Symbologies Default is barcode 20 which is Code 128 Examples b20 barcode 71 data DATA Sets the data of a barcode Alternatively you can specify a file that contains the data with datafile Examples d12345 data 12345 d ABCD 12345 data ABCD 12345 Double quotes need to be escaped with two double quotes So if you want to encode the data te 123 into a barcode you need to write data Text 123 TBarCode X V10 0 and earlier The encoding of the input data must be ANSI ASCII CP1252 If your Linux U
2. Specifying font numbers directly In PCL you can also specify font numbers in the format nnnnns n font number spacing flag f fixed or p proportional font 4099f font 16901p font 1o70lp Bold Supported in TBarCode X V10 1 1 and higher version PCL output only Supported in TBarCode X V10 1 1 and higher version PCL output only WWW TEC IT COM Page 35 of 93 textdist DISTANCE Sets the distance between the bars and the readable barcode text Unit of measurement millimeters Table 9 Barcode Text Options 7 5 5 Appearance Quiet Zone Print Ratio These parameters are used for specifying appearance options like Bearer Bar Quiet Zone and Narrow To Wide Bar Ratio Print Ratio All of these parameters are optional Short Long Description bearertype TYPE Sets the type of the bearer bar Possible values Default topandbottom Horizontal bar above and below the barcode rectangle Rectangle around the barcode NU Op E Horizontal bar above the barcode ccu etos Horizontal bar below the barcode The former value horizontal is deprecated and has been replaced by topandbottom Example bearertype TOPANDBOTTOM bearerwidth WIDTH Sets the width of a bearer bar Unit of measurement millimeters Example bearerwidth 1 5 notchheight HEIGHT Set th
3. 1234 Long style GNU style for example tbarcode output barcode eps barcode 20 data abc1234 Windows DOS style for example WWW TEC IT COM Page 25 of 93 tbarcode output barcode eps b 20 data abc1234 The available options and barcode settings are described below using long style and short style Please note Only the most important parameters are available in short style 7 4 Options You can view the options of the TBarCode X command line application with tbarcode help 7 4 1 General Options For generating a barcode an output file name is required All other parameters are optional Short Long Description g output FILE Specifies the name of the output file Examples o tmp barcode eps output tmp b ps inifile FILE Sets the path and name of the configuration file The default is usr local share tbarcodel0 tbarcode conf Example inifile home userXYZ myTbarcode conf license DIRECTORY Sets the path where the license file is located The default is usr local share tbarcodel0 Example license etc The name of the license file is always license ini globalxoffset X Sets an offset for the x coordinate This offset is added to the x coordinate of the barcode positions Unit of measurement millimeters Example globalxoffset 10 5 globalyoffset Y Sets an offset for the y coordinate This offse
4. Traditional Chinese OPI25I us ANSI Cyrillic CP20866 Russian KOI8 R Examples codepage UTF8 This parameter does not specify the encoding of the input characters It is recommended to change the code page only in closed applications or when using ECI parameters in 2D codes In many cases bar code readers decode the bar code data only with the default code page of the bar code hexbinary Enables hexadecimal encoding mode and enforces binary encoding mode in the selected 2D symbology Can be used for DP Premiumadress Data Matrix where the data is given as hex string and the Data Matrix should use BASE256 binary encoding mode Table 12 Encoding Options 7 5 8 Filter Settings To enable filtering TBarCode X has to be called with the program option filter See Section 7 4 2 Filter Options The following filter parameters can be used to fine tune single barcodes individually These para meters are optional Short Long Description initgraphics Calls initgraphics in PostScript movecursor Moves cursor in the PCL code to end of the barcode remove Removes barcode control sequence from the data stream after filtering The default behavior is to overwrite the barcode control sequences with blanks embed STATE Defines the type of PostScript PCL code that is created Possible values on default for filtering off embed on creates a barcode that ca
5. tecit TBarCodel0 tbarcoded The daemon is started automatically as soon as the TBarCode X command line application is invoked In general there is no need to start the daemon manually Please note that the TBarCode X Library does not use or require the daemon 4 2 About this Manual Here is a quick overview of the most important sections in this manual The installation of TBarCode X is described in Section 5 Installation After installation some basic tests can be performed to see whether TBarCode X was installed correctly These tests are described in Section 6 Testing TBarCode X The command line usage of TBarCode X is described in Section 7 Using TBarCode X Section 8 TBarCode X as Spool Filter explains how TBarCode X can be configured as a printer filter that automatically filters print jobs Before you use TBarCode X commercially you need to acquire a valid license from TEC IT Section 10 Licensing explains how to install a valid license WWW TEC IT COM Page 15 of 93 5 Installation TBarCode X is available in binary form only The installation package is available in three versions as BIN package which is a combination of RPM or DEB archive with an installation script as HPM or DEB package which are common formats for Linux operating systems or as TAR GZ package with installation scripts for UNIX operating systems AIX HPUX package for Mac Operating Systems
6. Depending on the type of package you have received or downloaded the installation is slightly different 5 1 Install TBarCode X from a BIN Package If you have received the TBarCode X software as BIN package then follow the instructions in this section BIN packages can be executed like shell scripts and consist of ashell script which displays the license information and installs the product abinary package the software installation base RPM or DEB file The following steps need to be performed as administrator user root 1 Opena new console terminal 2 Type the command sh tbarcodel0 xxx bin Replace the above file name with the file you have downloaded for your operating system 3 Walk through the displayed license terms with Space and confirm them agree by entering Yes followed by Return 4 The package will be installed gt If you install an rpm bin package see also the instructions in 5 2 Install TBarCode X from an RPM Package 5 1 1 Common Problems Failed dependencies e g GCC runtime libraries missing see A 1 Dependencies Shared library libtbarcode not found see A 2 Shared Library Path 5 2 Install TBarCode X from an RPM Package If you have received the TBarCode X software as RPM package then follow the instructions in this section gt RPMs file extension rpm are archive files for automated software installation They require an RPM package manager install
7. Inches Example reductionunit perc Table 11 Barcode Quality Options 7 5 7 Encoding Options These parameters can be used to control the character encoding code page of the bar code data Short Long Description encodingmode MODE Sets the encoding mode for the bar code data Possible values CODEPAGE Use the codepage specified with codepage or use the default encoding of the selected bar code type RAW No code page conversion is used input data is used as is HEXADECIMAL Input data is treated as pairs of hexadecimal values Bytes No code page conversion is performed Default mode is CODEPAGE Examples WWW TEC IT COM Page 37 of 93 encodingmode HEXADECIMAL data 1B 3C FE 1 04 codepage ENCODING Sets the code page encoding of the bar code data This parameter converts the input data to the specified code page Escape sequences are translated before this conversion is applied With encoding mode RAW HEXADECIMAL this parameter is ignored If omitted the default encoding of the selected bar code type is used see our Barcode Reference for more information Possible values ANSI ANSI ASCII 1252 Windows 1252 LATINI ISO 8859 1 437 ASCII Extended CP437 wi DTE Be idus UTF 8 CP949 Korean CP932 Japanese Shift JIS CP936 Simplified Chinese CP950
8. When using Code 39 the characters will be trimmed from begin to the end of the data For example data 123 will be interpreted as data 123 easybar STATE Enables or disables the handling of EasyBar control sequences Possible values on off default EasyBar control sequences are another type of control sequences for embedding barcodes in PCL data streams Example WWW TEC IT COM Page 27 of 93 easybar ON insert MODE Only for experts Sets the insert position for the barcode data within the PS or PCL file Possible values beforeline afterline beforestring default afterstring Example insert afterline insertpattern Only for experts Scan spool file for a specific pattern The pattern indicates the line in which the EPS output bar code image should be inserted For PostScript only Example insertpattern Specific PS Code insert atterline linebyline Only for experts Filters the data stream line by line Normally a barcode escape sequence can span multiple lines of the input file The end of the escape sequence marked with 5 tbce by default can be several lines after the start of the escape start sequence When line by line filtering is activated the escape sequence is limited to the current line of the input file stream This flag can help to recover from filter errors in invalid or unsupported input files
9. Table 2 Filter Options Additionally there are a number of filter options that can be set individually for each barcode see Section 7 5 8 Filter Settings 7 4 3 Compatibility Options V1 Format The format of the barcode parameters has changed from TBarCode X version 1 x to version 2 0 and higher This also implies that the syntax of the barcode control sequences has changed The TBarCode X command line application can be run in compatibility mode to support the old bar code parameter format In this way you can easily migrate from version 1 x to version 2 0 or higher Short Long Description vlformat Enables compatibility mode with TBarCode X version 1 x All barcode control sequences will be interpreted as with TBarCode X 1 x If you set this parameter in the tbarcode conf configuration file the tbarcode command works like the tbarcodeclient in TBarCode X 1 x is a sample control sequence for TBarCode X 1 x v1 format tbcs tPS b20 dHello World tbce Here is the same control sequence for TBarCode X 2 0 and newer tbcs 5 b20 d Hello World tbce Table 3 Compatibility Options 7 4 A Error Messages and Debug Options With these additional parameters the creation of debug information and or log files can be enabled WWW TEC IT COM Page 28 of 93 Short Long Description errorfile FILE Saves all messages in the given file This shou
10. The input stream must be PostScript or PCL All other input streams are not modified by TBarCode X stream TYPE Sets the type of the input stream Possible values PS PostScript data stream PCL PCL data If not set TBarCode X automatically detects the type of the input stream Example stream PS escapebegin STRING Sets string that identifies the beginning of a barcode control sequence The default value is 5 tbcs This string must be distinguishable from any PostScript or PCL PJL command In particular t must not begin with because 9 has special meaning PJL t must not begin with 96 or any other special character that has a special meaning in PostScript t must be different than the string set with escapeend Example escapebegin BARCODEBEGIN escapeend STRING Sets a string that identifies the end of a barcode control sequence The default value is tbce This string must be distinguishable from any PostScript or PCL PJL command In particular t must not begin with because 9 has special meaning in PJL t must not begin with lt 96 or any other special character that has a special meaning in PostScript t must be different than the string set with escapebegin Example escapeend BARCODEEND pclreset Creates PCL reset commands at the beginning and the end of the PCL stream in filter mode 5 SAP This flag should be set when printing from an SAP environment
11. 5 may specify user defined filters f 1 is not occupied by another filter we set the value of 1 to usr local share tbarcodel0 tbarcode filter lt Parameters gt Forthat we use chvirprt to edit the attributes of the virtual printer definition chvirprt q lt QueueName gt d DeviceName a f1 usr local share tbarcodel10 tbarcode cxtat QueueName must be replaced with the virtual queue name lt DeviceName gt must be replaced with the device name of the virtual queue 4 f you want to print and filter barcodes call with the parameter 1 The following test print shows if the filter is working qprt PQueueName f1 usr local share tbarcodel0 testfile ps qprt PQueueName f1 usr local share tbarcodel0 samples 2bc pcl 5 fthe filter is working you see bar codes make the filter 1 permanent This is done by setting the virtual printer attribute to 1 chvirprt q lt QueueName gt d lt DeviceName gt a _f 1 With this setting all print jobs for this queue will be filtered automatically with TBarCode X 8 3 1 f1 Attribute Available If there is no f1 attribute available recreate the printer queue with option Local filtering before sending to print server The commands used to create a virtual printer the mkvirprt or smit virprt commands copy a predefined virtual printer definition and create a customized virtual printer definition for the specified queue and queue devi
12. Macro PDF417 Options 40 Table 17 Data Matrix Options 40 Table 18 MaxiCode Options 40 Table 19 QR Code Options 41 Table 20 Micro QR Code Options 41 Table 21 Codablock F Options 42 Table 22 Aztec Code Options 42 Table 23 RSS Expanded Stacked Options 42 Table 24 Composite Barcode Options 42 Table 25 Multiple Barcodes Options 44 Table 26 Deprecated Options 44 Table 27 TBarCode X Configuration Files 45 Table 28 Barcode Symbologies 77 Table 29 Check Digit Methods and Enumerators 78 Table 30 PDF417 Encoding Mode 78 Table 31 Micro PDF417 Symbol Sizes 78 Table 32 Micro PDF417 Modes 79 Table 33 Data Matrix Symbol Sizes 79 Table 34 Data Matrix Formats 79 Table 35 MaxiCode Modes 80 Table 36 QR Code Symbol Sizes 80 Table 37 QR Code Format Options 81 Table 38 QR Code Error Correction Levels 81 Table 39 Micro QR Code Symbol Sizes 81 Table 40 QR Code Error Correction Levels 81 Table 41 Codablock F Parameters 82 Table 42 Aztec Code Symbol Sizes 82 WWW TEC IT COM Page 7 of 93 Table 43 Table 44 Table 45 Table 46 Table 47 Table 48 Table 49 Table 50 Table 51 Table 52 Table 53 Table 54 Aztec Code Format Options Implemented Escape Sequences Extended Escape Sequences Format Placeholders Format Examples PCL Font Numbers Overview Parameter Syntax of Version 1 x TBarCode Daemon General Options TBarCode Daemon Daemon and IPC Options TBarCode Daemon Error Message and Debug Options TBarCode Daemo
13. 0 1 gcc libs 3 3 2 or gcc 3 3 2 HP UX 11 00 PA 2 0 htto www tec it com Download Unix HPUX gcc 3 3 2 sd 11 00 depot gz V8 0 4 gcc libs 3 2 2 HP UX 11 11 PA 2 0 htto www tec it com download Unix HPUX gcc gcc libs 3 2 2 hpux11 11 tar gz htto www tec it com download Unix HPUX gcc gec libs 3 2 2 tar bz2 V9 0 0 libgcc 4 3 1 or gcc 4 3 1 HP UX 11 23 IA64 http hpacxx external hp com gcc gcc ia64 4 3 1 depot gz V9 0 4 http www tec it com download Unix HPUX gcc libgcc 4 3 1 HPUX1 1 23 ia64 tar gz UX 11 23 1 64 V9 0 1 libgcc 4 3 3 or gcc 4 3 3 HP UX 11 11 PA 2 0 htto npacxx external hp com gcc gcc hppa 4 3 3 depot gz V9 0 4 libgcc 4 4 0 or gcc 4 4 0 UX 11 31 1 64 http hpacxx external hp com gcc gcc ia64 4 4 0 depot gz Others Please see the README file in the products installation directory if available or contact TEC IT Support support gtec it com A 1 3 ICONV Libraries On UNIX systems iconv is used to convert between different character sets Iconv is available on the command line as well as through the shared library libiconv Usually the installed iconv libraries contain all character sets and conversion tables required for the basic linear bar code types Latin 1 ASCII etc But specific 2D codes may require a more advanced code page conversion as currently installed on your system QR Code Japan requires CP932 SHIFT JIS PDF417 requires CP437 In thi
14. 18 15 eCDNone code 45 71 Data Matrix 1 1 72 EAN 14 1 2 3 4 1 2 3 4 1 2 3 4 15 25 35 45 eCDEAN14 73 Codablock E eCDCodablockE 74 Codablock F 1 2 3 4 1 2 3 4 1 2 15 25 eCDCodablockF 75 NVE 18 1 2 3 4 1 2 3 4 1 2 3 4 15 25 35 45 eCDMod10 76 Japanese Postal customer 1 1 1 1 eCDNone code 77 Korean Postal Authority Code 1 3 4 1 15 25 eCDMod10Kor 78 GS1 DataBar Truncated 1 2 3 4 5 6 7 8 9 1 1B 2B 3B 4B 5B 6B 7B 8B 9B eCDNone RSS 14 Truncated 2 3 4 5 6 7 8 9 15 25 35 45 55 65 75 85 95 79 951 DataBar Stacked RSS 1 2 3 4 5 6 7 8 9 1 1B 2B 3B 4B 5B 6B 7B 8B 9B eCDNone 14 Stacked 2 3 4 5 6 7 8 9 15 25 35 45 55 65 75 85 95 80 651 DataBar Stacked 1 2 3 4 5 6 7 8 9 1 1B 2B 3B 4B 5B 6B 7B 8B 9B eCDNone Omnidirectional RSS 14 2 3 4 5 6 7 8 9 15 25 35 45 55 65 75 85 95 Stacked Omnidirectional 81 GS1 DataBar Expanded 1 2 3 4 5 6 7 8 9 1 1B 2B 3B 4B 5B 6B 7B 8B 9B eCDNone Stacked RSS Expanded 2 3 4 5 6 7 8 9 15 25 35 45 55 65 75 85 95 Stacked 82 Planet Code 12 digits 1 1 1B 1S eCDMod10Pla 83 Planet Code 14 digits 11 1 1 eCDMod10Pla 84 MicroPDF417 1 2 3 4 5 6 1B 2B 3B 4B 5B 6B eCDNone 1 2 3 4 5 6 15 25 35 45 55 65 85 Intelligent Mail amp Barcode 1 1 1B 1S eCDNone formerly known as the 4 State Customer Barcode 86 Plessey Code with 1 2 3 1 2 1 2 3 15 25 eCDPlessey bidirectional reading support 87 Telepen 1 3 1 3 1 2 15 25 eCDNone 88 951 128 EAN UCC 128 1 2 3 4 1 2 3
15. 4 1B 2B 3B 4B 18 28 38 48 eCDNone 89 ITF 14 1 3 1 3 1 2 15 25 eCDNone 90 KIX 1 1 1B 1S eCDNone 91 BC412 92 Aztec Code 1 1 1 1 eCDNone 93 DAFT Code 1 1 1 15 eCDNone 94 Italian Postal 2 of 5 1 3 1 3 1 2 15 25 eCDNone 95 Italian Postal 3 of 9 1 3 1 3 1 2 15 25 eCDNone Page 76 of 93 96 DPD Code 1 2 3 4 1 2 3 4 1B 2B 3B 4B 18 28 38 48 eCDNone 97 Micro QR Code 1 1 18 15 eCDNone 98 HIBC LIC 128 1 2 3 4 1 2 3 4 1B 2B 3B 4B 18 28 38 48 eCDMod43 99 HIBC LIC 39 1 3 1 3 1 2 15 25 eCDMod43 100 HIBC PAS 128 1 2 3 4 1 2 3 4 1B 2B 3B 4B 18 28 38 48 eCDMod43 101 HIBC PAS 39 1 3 1 3 1 2 15 25 eCDMod43 102 HIBC LIC Data Matrix 1 1 18 15 eCDMod43 103 HIBC PAS Data Matrix 1 1 18 15 eCDMod43 104 HIBC LIC QR Code 1 1 18 15 eCDMod43 105 HIBC PAS QR Code 1 1 1 15 eCDMod43 106 HIBC LIC PDF417 1 2 3 4 5 6 7 8 1 2 1B 2B 3B 4B 5B 6B 7B 8B 1S 2 eCDMod43 3 4 5 6 5 35 45 55 65 107 PAS PDF417 1 2 3 4 5 6 7 8 1 2 1B 2B 3B 4B 5B 6B 7B 8B 1S 2 eCDMod43 3 4 5 6 5 35 45 55 65 108 HIBC LIC MicroPDF417 1 2 3 4 5 6 1 2 3 4 1B 2B 3B 4B 5B 6B 18 28 38 4 eCDMod43 5 6 5 55 65 109 HIBC PAS MicroPDF417 1 2 3 4 5 6 1 2 3 4 1B 2B 3B 4B 5B 6B 18 28 38 4 eCDMod43 5 6 5 55 65 110 HIBC LIC Codablock F 1 2 3 4 1 2 3 4 1B 2B 3B 4B 18 28 38 48 eCDMod43 111 HIBC PAS Codablock F 1 2 3 4 1 2 3 4 1B 2B 3B 4B 18 28 38 48 eCDMod43 112 QR Code 2005
16. 5 Uninstall TBarCode X 5 4 Install TBarCode X SCO Operating Systems 5 4 1 Remove TBarCode X 5 5 Install TBarCode X on Mac OS 5 5 1 Remove TBarCode X 5 6 File Permissions 5 6 1 TBarCode X with Daemon 5 6 2 TBarCode X without Daemon 5 7 SAP R 3 and SAP ERP Integration Testing TBarCode X 6 1 Run TBarCode X from Command Line 6 1 1 Run the TBarCode Command 6 1 2 Run TBarCode as Filter 6 2 Demo License Restriction 6 3 TBarCode X isn t Working Using TBarCode X 7 1 Create a Barcode 7 1 1 Create a Barcode in EPS PostScript Format 74 2 Create a Barcode in PCL 5 HP GL 2 Format 7 1 3 Create a Barcode in PDF Portable Document Format 7 1 4 Create a Barcode in Bitmap Format 7 2 Filter a Print Job or Document File WWW TEC IT COM Page 2 of 93 7 2 1 1 Control Sequence Structure 7 2 2 Insert a Barcode into a PostScript Document 7 2 3 Insert a Barcode into a PCL Document 7 8 TBarCode X Command Line Tool 7 3 1 Usage 7 4 Options 7 4 1 General Options 7 4 2 Filter Options 7 4 8 Compatibility Options V1 Format 7 4 4 Error Messages and Debug Options 7 4 5 Informative Output 7 5 Barcode Settings 7 5 1 Barcode Type Barcode Data 7 5 2 Output Format 7 5 3 Barcode Size and Drawing Position 7 5 4 Text Settings 7 5 5 Appearance Quiet Zone Print Ratio 7 5 6 Quality Enhancement 7 5 7 Encoding Options 7 5 8 Filter Settings 7 5 9 PDF417 Settings 7 5 10 Micro PDF417 Settings 7 5 11 Macro PDF417 Settings 7 5 12 Data Matr
17. Symbology Specific Control Characters C 12 Formatting Barcode Data C 13 PCL Font Numbers Appendix D Using Version 1 x Format D 1 Overview V1 Format Appendix E TBarCode Daemon E 1 Usage E 2 Options E 2 1 General Options E 2 2 Daemon and IPC Options E 3 Error Message and Debug Options E 3 1 Informative Output Appendix F ASCII Table Appendix G Knowledge Base G 1 Unix Printing HP UX and Solaris G 1 1 SVR4 Spooling System G 1 2 Interface Programs BSD and SVR4 G 1 3 Printer Interface Scripts HP UX G 1 4 Links WWW TEC IT COM Page 5 of 93 1 1 Table of Figures Figure 1 TBarCode X with Daemon as Background Server Process Figure 2 TBarCode X without Daemon Figure 3 Multiple Data Matrix Barcodes 1 Figure 4 Multiple Data Matrix Barcodes 2 Figure 5 Printing with TBarCode X Figure 6 HP UX Printer Models Interfaces WWW TEC IT COM 13 13 43 43 47 52 Page 6 of 93 1 2 List of Tables Table 1 General Options 27 Table 2 Filter Options 28 Table 3 Compatibility Options 28 Table 4 Error Message and Debug Options 29 Table 5 Informative Output 29 Table 6 General Barcode Settings 32 Table 7 Output Format Settings 33 Table 8 Barcode Size and Position 34 Table 9 Barcode Text Options 36 Table 10 Barcode Appearance Options 37 Table 11 Barcode Quality Options 37 Table 12 Encoding Options 38 Table 13 Filtering Options 38 Table 14 PDF417 Options 39 Table 15 Micro PDF417 Options 39 Table 16
18. be modified depends on the settings within SAM it is adjusted in the input field printer model interface fdd Local Printer Plotter lt nedusa Printer Printer Hodel Interface Printer Class optional Default Request Priority 0 Uk Nodels Interfaces ned Nane Description This Printer the Default ECTS Standard HP model script laser jet4 Standard nodel script laser jet4Si Standard HP nodel script laser jet4y Standard HP nodel script laser jet5 i Standard HP nodel script laser jetIIISi Standard HP script paint jet Standard HP nodel script paint jetXL300 Standard HP model script postscript 77 model script quiet jet Standard script rnodel Standard HP nodel script ruggeduriter Standard HP model script think jet Standard HP script Zetc lp interface HP4050PS In use printer nodel script Figure 6 HP UX Printer Models Interfaces You need to add some commands to the model script in order to call TBarCode X see next section they are the same as with remote printers 8 43 Using a Remote Printer For remote printers LPR there are other scripts responsible for calling the filter they are placed in etc lp interface For instance if you have a remote printer HP4050PS the script which handles the print out is located in etc 1p interface HP4050PS please check if you have a script in this place 8 4 4 Prin
19. globalyoffset 10 escapebegin BARCODE START escapeend BARCODE END 7 6 4 tbarcoded conf The configuration file tbarcoded conf can contain the following options memory license errorfile nosyslog nostderr trace 7 6 5 Priority of Options and Barcode Settings As shown so far options can be set at three levels As command line parameter configuration file custom barcode settings file using bcfile The same options could be set multiple times In this case the options on the command line and in the barcode settings file override the options in the configuration files WWW TEC IT COM Page 46 of 93 8 TBarCode X as Spool Filter TBarCode X can be installed in the spool system to automatically filter print jobs TBarCode X works with all PostScript or PCL based printing queues TBarCode X scans all print jobs for certain barcode control sequences Here is an example of a barcode control sequence tbcs b3 d 1234567890 tbce When TBarCode X detects such a sequence it automatically replaces the sequence with a barcode Document with Barcode Control Sequences Document with Barcodes TTE Wie Print Server with TBarCode X Printers Figure 5 Printing with TBarCode X In the following sections you will find information on how to setup TBarCode X for the most important print spooling systems 8 1 LPRng Printing System To install TBarCode X as
20. kghostview barcode eps 6 1 2 Run TBarCode as Filter Type the following command tbarcode filter usr local share tbarcodel0 samples testfile ps output ps testfile ps is a simple sample document that includes some barcode control sequences The command processes the document and replaces all barcode control sequences with real barcodes The result is stored in output ps Again you can view the result in any PostScript viewer or directly send output ps to a PostScript printer for example with 1p d name of printer output ps Verify that the resulting page contains barcodes 6 2 DemoLicense Restriction When testing TBarCode X you will probably see a black bar drawn horizontally across the whole barcode This bar only appears in the unlicensed version of TBarCode X As soon as you have installed a valid license all barcodes will be drawn correctly Section 10 Licensing describes how you can acquire a valid license from TEC IT 6 3 TBarCode X isn t Working Please read through the previous sections Make sure you have performed all required steps during installation Consult the section Appendix B Troubleshooting FAQ in case of persisting problems WWW TEC IT COM Page 22 of 93 7 Using TBarCode X 7 1 Create a Barcode The samples below give you a quick start for generating barcodes For more detailed instructions read ahead in section 7 3 7 1 1 Create a Barcode in EPS PostScript Format The command
21. library is missing Where can read syslog messages Why is a horizontal bar drawn across the barcodes Questions about Filtering Printing CUPS How to tell which filters are in place and maybe failing or missing How can filter ASCII files Why is there no barcode when testing the TBarCode X with LPRng How to replace printer specific control sequences with TBarCode control sequences How can filter Easybar control sequences How can print barcodes within a text file How can send a file without modification to a printer LPRng Spool System How can find out what data the printer gets from the queue spooler Where can get more help Appendix C Barcode Parameters C 1 2 C 3 1 C 4 4 1 4 2 5 5 1 5 2 C 6 C 6 1 C 7 C 7 1 7 2 7 3 C 8 C 8 1 C 8 2 C 9 C 9 1 C 10 Barcode Symbologies Check Digit Methods PDF417 Parameters Encoding Mode Micro PDF417 Parameters Version Symbol Sizes Mode Data Matrix Parameters Symbol Sizes Format MaxiCode Parameters Mode QR Code Parameters Version Symbol Sizes Format Error Correction Level Micro QR Code Parameters Version Symbol Sizes Error Correction Level Codablock F Parameters Format Aztec Code Parameters WWW TEC IT COM Page 4 of 93 C 10 1 Symbol Sizes C 10 2 Format C 11 Encoding Bytes and Control Characters in Input Data C 11 1 Implemented Escape Sequences C 11 2 Encoding Bytes or Binary Values C 11 3
22. of data can be encoded even by barcodes with limited data capacity Multiple barcodes should only be used with the following barcode symbologies Data Matrix PDF417 MicroPDF QR code Aztec Code Example The following command creates multiple barcodes tbarcode output barcodes eps b71 width 40 height 10 dynamicsize vertical multiple on columns 4 sizemode minimal decoder hardware structapp standard data The initial size of the barcode is 40 mm x 10 mm width 40 height 10 Depending on the amount of data TBarCode X automatically creates multiple barcodes as shown in the following figure Figure 3 Multiple Data Matrix Barcodes 1 When more data is encoded TBarCode X adds more barcodes automatically Up to four barcodes are drawn per row columns 4 mE Figure 4 Multiple Data Matrix Barcodes 2 For even larger amounts of data TBarCode X starts a new row and the image size grows vertically dynamicsize vertical A structured append information is added to the barcodes structapp standard The barcodes can be scanned in any order The barcode scanner will use the structured append information to identify the correct order of the barcodes and decode the data correctly For generating multiple barcodes you have to set multiple on All other parameters are optional Short Long Description multiple STATE Enables or disable multiple barcodes P
23. the parameter defaultset 1 TBarCode X uses default values which are common for most barcode applications You can specify this parameter in the TBarCode X configuration file tbarcode conf If you don t know which barcode parameters to use please contact support tec it com B 25 How can l filter Easybar control sequences Easybar control sequences can be filtered directly with TBarCode Command Use the following syntax tbarcode filter easybar on lt input pcl output pel When TBarCode X is installed in your print spool system you can enable Easybar support permanently by adding the line easybar on to the TBarCode X configuration file tbarcode conf You should also consider using the option remove This option removes the Easybar control sequence from the filter stream which is the default behavior of most Easybar devices B 2 6 How canl print barcodes within a text file PCL printers can accept normal text files ASCII files Reports and lists are often printed as normal ASCII files You can filter a text file with TBarCode X and let it create PCL barcodes The resulting document will contain the ASCII print data together with PCL commands for drawing barcodes This document can be sent directly to the printer But you need to ensure that this document is sent directly to the printer without going through the Unix standard spool filters The spool filter could convert the barcode drawing commands back to normal text R
24. the product without this horizontal bar you can request a temporary license key for free Simply contact sales tec it com Section 10 Licensing describes how you can acquire a valid license from TEC IT 3 5 Version History 3 51 TBarCode X Version History The detailed version history including the list of bug fixes can be found on the web http www tec it com software barcode software barcode linux unix mac os x history Default aspx Below you find a brief introduction into the main versions 3 5 1 1 What s new in V10 New bar code types DP Postmatrix QR Code 2005 ISBN 13 ISBN 13 5 ISMN ISSN 155 2 USPS Intelligent Mail amp Barcode LibTBarCode The text callback function now supports UNICODE Minimalistic font handling support for PCL export was implemented The module width can now be set in double precision 64 bit floating point The list of the supported application identifiers GS1 128 was updated Check digit method Modulo 10 Luhn Algorithm has been added New installation path usr local share tbarcode1 0 WWW TEC IT COM Page 11 of 93 3 5 1 2 What s new in V9 New Barcode types Micro QR Code Health Industry Bar Codes HIBC Full support of Aztec Code optimized encoding Improved quiet zone adjustment Works for all barcodes now Calculate optimal bitmap sizes PDF output Improved bar width reduction handling units decimal numbers Adding ZLib to the X64 vers
25. to be decompressed using the appropriate algorithm Example compress DEFLATE Important To use compression the ZLib compression library available at http www zlib net has to be installed your Linux or UNIX server bcfile FILE Instead of specifying the barcode settings as command line parameters you can specify a file that contains the barcode settings Example tbarcode obc eps bcfile settings dat data 0123 Example content of settings dat barcode 20 modulewith 0 352 width 35 WWW TEC IT COM Page 31 of 93 height 15 The syntax of a barcode settings file is identical to the syntax of a configuration file See Section 7 6 2 Syntax of a Configuration File defaultset NUMBER Use a certain set of default bar code settings defaultset 1 should be used when you are migrating from a hardware based barcode printing solution to TBarCode X Table 6 General Barcode Settings 7 5 2 Output Format These parameters are used for specifying the output format like bitmap EPS PCL color modes background etc Short Long Description f format TYPE Defines the output format Possible values PostScript POD zs PCL w PDF PDF PDFFRAG PDF fragment IMAGE Image bitmap The default setting is ormat Ps In filter mode the output format is the same as the format of the input s
26. usages of TBarCode X Create Bar Codes on the Command Line All necessary parameters are passed to a command line program and barcodes are saved as vector or bitmap graphics files Filter Print Jobs TBarCode X can process PostScript or PCL print jobs During the filter process TBarCode X searches for barcode control sequences and replaces them with the barcode graphics Barcode parameters are specified in the document as part as part of the control sequence WWW TEC IT COM Page 10 of 93 3 3 System Requirements 3 3 1 Supported Platforms TBarCode X binaries are available for Linux SUSE Red Hat and other distributions Intel x86 FreeBSD 5 4 6 Intel x86 AIX 4 3 5 2 5 3 6 1 PowerPC HP UX 11 00 11 11 PA RISC HP UX 11 23 11 31 Itanium 2 OS 400 AS 400 SCO OpenServer 5 0 7 6 SCO UnixWare 7 1 4 Intel x86 Solaris 8 9 SPARC Solaris 10 Intel x86 SPARC Mac OS X gt 10 4 Please visit our website http www tec it com to check out the latest versions and supported platforms Binaries for special platforms are available on request 3 3 2 Supported Output Devices PostScript Level 2 PCL Level 5 PDF 1 3 3 4 Functional Restriction of the Demo Version The unlicensed version contains a black bar drawn horizontally across the whole barcode This horizontal bar disappears as soon as you have installed a valid license file gt If you want to test
27. will choose the optimal size which is closest to the specified width An optimal size is where all bar widths are exactly integer multiples of pixels gt Always use the option optimalwidth or just O when creating bitmap barcodes This will guarantee the readability of the resulting barcodes 9 1 1 Samples Here are some more examples tbarcode fIMAGE iPNG obarcode png b71 O d 0123456789 creates a small Data Matrix barcode The resulting bitmap is 12 x 12 pixels large where a module is exactly one pixel WWW TEC IT COM Page 57 of 93 tbarcode fIMAGE iTIF obarcode tif b20 w50 h20 dpi 200 d 0123456789 creates a Code 128 barcode which is 50 mm x 20 mm when printed at 200 api Warning This barcode might not be readable because the module width is not aligned with the pixel raster Use the parameter optimalwidth just This will ensure that the barcode is perfectly readable See the next example Examples tbarcode fIMAGE iTIF obarcode tif b20 w50 h20 dpi 200 d 0123456789 0 creates a Code 128 barcode which fits into an area of 50 mm x 20 mm The actual size of the resulting bitmap is 45 7 mm x 19 9 mm This barcodes is guaranteed to be readable tbarcode fIMAGE iTIF obarcode tif b71 sizemode MINIMAL dpi 200 a decoder SOFTWARE d DATA 0123456789 creates a barcode that is optimized for 200 dpi and software barcode decoder 9 2 Indirect Me
28. 1 1 18 15 Reserved but implemented Table 28 Barcode Symbologies C 2 Check Digit Methods The check digit calculation method can be set with the parameter checkdigit Number For example checkdigit 2 sets the Modulo 10 check digit method WWW TEC IT COM Index Check digit calculation method Enumeration 0 No check digit will be computed eCDNone 1 Standard check digit of the selected barcode type is used eCDStandard 2 Modulo 10 usually used with Interleaved 2015 eCDMod10 3 Modulo 43 suggested for Code39 and Logmars consist of 1 digit eCDMod43 4 Modulo 47 2 digits eCD2Mod47 5 Method for DP Leitcode eCDDPLeit 6 Method for DP Identcode eCDDPident 7 Method for Code11 1 digit eCD1Code11 8 Method for Code11 2 digits eCD2Code1 1 9 Method for USPS Postnet eCDPosinet 10 Method for MSI 1 digit eCDMSI1 11 Method for MSI 2 digits eCDMSI2 12 Method for Plessey eCDPlessey 13 Method for EAN 8 eCDEAN8 14 Method for EAN 13 eCDEAN13 15 Method for UPC A eCDUPCA 16 Method for UPC E eCDUPCE 17 EAN 128 internal method Modulo 103 eCDEAN128 18 Code 128 internal method Modulo 103 eCDCode128 19 Method for Royal Mail 4 State eCDRM4SCC Page 77 of 93 20 Mod 11 Method for PZN eCDPZN 21 Mod 11 Weighting 7 eCDMod11W7 22 Method for EAN 14 eCDEAN14 23 Method for Korean Postal Author
29. 19 91x91 3 23 x 23 20 95 x 95 4 27x27 21 101 x 101 5 31 x 31 22 105 105 6 37 37 23 109 x 109 7 41x41 24 113 x 113 8 45 x 45 25 117 x 117 9 49 x 49 26 121 x 121 10 53 x 53 27 125 x 125 11 57 x57 28 131 x 131 12 61 x 61 29 135 x 135 13 67 x 67 30 139 x 139 14 71x71 31 143 x 143 15 75x75 32 147 x 147 16 79 x 79 33 151 x 151 And 3 special sizes usually used only for reader programming 34 19 x 19 reader progr 36 27 x 27 reader progr 35 23 x 23 reader progr Table 42 Aztec Code Symbol Sizes C 10 2 Format This table shows the possible formats for Aztec Code barcodes The format can be defined by the control sequence ACformat ndex Index Format 0 default format 1 GS1 UCC EAN 2 Industry Table 43 Aztec Code Format Options WWW TEC IT COM Page 82 of 93 C 11 Encoding Bytes and Control Characters in Input Data If you want to use non printable or special characters in your barcode data you have to use Escape Sequences These sequences start with a backslash 57 followed by the sequence see table below You can use them also for encoding binary data in your barcode but only if the symbology offers this feature e g PDF417 or Data Matrix quotation marks like translation on gt If you want to use escape sequences on the command line put the data string into single 123 F and enable translation of escape sequences with C 11 1 Im
30. 3 13 see C 1for more types m0 508 Set the module width X Dimension to 0 508 mm d 123456789012 Encode the data 123456789012 the check digit is calculated automatically Alternatively the Parameter fPDFFRAG could be used instead of fPDF In this case a PDF fragment would be generated instead of a valid document The fragment could be embedded into other PDF files WWW TEC IT COM Page 23 of 93 71 4 Create a Barcode in Bitmap Format The command below creates Code 39 barcode with the data content DATA1234 as GIF image tbarcode Sobarcode gif b8 0 Parameter Description fIMAGE Generate bitmap image iGIF Selected image format GIF other formats may be BMP JPG PNG or TIF obarcode gif Write barcode to the output file barcode gif specify full path if required b8 Generate Barcode Type Code 39 8 see section C 1for more types 0 Optimize resolution required for bitmap graphics d DATA1234 Encode the data 1234 See section 9 1 Direct Method Create Bitmap Images with TBarCode X for more bitmap samples 7 2 Filter a Print Job or Document File 7 2 1 1 Control Sequence Structure The print job or document must contain filter control sequences in the following format Prefix Data Suffix In filter mode TBarCode X will decode these control sequences and insert a bar code image either PCL
31. 4 5 1 3 1B 2B 3B 18 28 eCDNone 6 Code 2 of 5 Data Logic 1 3 1 3 1 2 15 25 eCDNone 7 Code 2 of 5 Industrial 1 3 1 1 2 15 eCDNone 8 Code 3 of 9 Code 39 1 3 1 3 1 2 15 25 eCDNone 9 Code 3 of 9 Code 39 ASCII 1 3 1 3 1 2 15 25 eCDNone 10 EAN8 1 2 3 4 1 2 3 4 1B 2B 3B 4B 18 28 38 48 eCDEAN8 11 8 2 digits add on 1 2 3 4 1 2 3 4 1B 2B 3B 4B 18 28 38 48 eCDEAN8 12 8 5 digits add on 1 2 3 4 1 2 3 4 1B 2B 3B 4B 18 28 38 48 eCDEAN8 13 EAN13 1 2 3 4 1 2 3 4 1B 2B 3B 4B 18 28 38 48 eCDEAN13 14 13 2 digits add on 1 2 3 4 1 2 3 4 1B 2B 3B 4B 18 28 38 48 eCDEAN13 15 EAN13 5 digits add on 1 2 3 4 1 2 3 4 1 2 3 4 15 25 35 45 eCDEAN13 16 EAN128 1 2 3 4 1 2 3 4 1B 2B 3B 4B 18 28 38 48 eCDCode128 17 UPC 12 Digits 1 2 3 4 1 2 3 4 1B 2B 3B 4B 18 28 38 48 eCDUPCA 18 Codabar 2 widths 1 3 1 3 1 2 15 25 eCDNone 19 Codabar 18 widths 20 Code128 automatic subset 1 2 3 4 1 2 3 4 1B 2B 3B 4B 18 28 38 48 eCDCode128 switching auto compress Page 74 of 93 WWW TEC IT COM WWW TEC IT COM Code128 A B C see below 21 Deutsche Post Leitcode 1 3 1 3 1 2 15 25 eCDDPLeit 22 Deutsche Post Identcode 1 3 1 3 1 2 15 25 eCDDPident 23 ISBN 13 5 digits add on 24 ISMN 25 Code 93 1 2 3 4 1 2 3 4 1B 2B 3B 4B 18 28 38 48 eCD2Mod47 26 ISSN 27 ISSN 2 digit
32. A on off Turn auto correct on or off gGuardWidth Width of guarding line in mm fFontname Font name in PostScript or Typeface Family Value in PCL PostScript Times Roman Courier Helvetica PCL 4101 4099 16602 If the number from the f parameter is 1000 or bigger than 1000 it will be identified as PCL Font number fFontsize Size of font in points tFormat Output format PS PostScript default or PCL iDistance Text distance in mm NHeight Notch height in mm mModWidth Module width narrow bar width in 1 1000 mm if used the W parameter for the symbol width is irrelevant RRatio Print ratio FFormat Format string used for formatting barcode data prior to printing it Calculate optimal width of barcode QhHorzQZ Horizontal quiet zone in mm e g Qh1 34 or Qh5 The specified quiet zone is a blank space which is added to the left and right side of the symbol Usually the Quiet zone should be 10 times the module width or higher QvVertQZ Vertical quiet zone in mm e g Qv1 34 or Qv5 The specified quiet zone is a blank space which is added to the top and bottom of the symbol Usually the Quiet zone should be 10 times the module width or higher I Use initgraphics command in PostScript This may improve the positioning of the barcode if relative positioning is used in PostScript documents e Move cursor to end of barcode in PCL W Remove leading and trailing spaces from content Table 49 Overview Parameter Sy
33. CC18 1 2 3 4 1 2 3 4 1B 2B 3B 4B 18 28 38 48 eCDMod10 49 FIM 50 LOGMARS 1 3 1 3 1 2 15 25 eCDNone 51 Pharmacode One Track 1 3 2 4 2 3 1B 2B 1C 2C 18 28 eCDNone 52 PZN Pharma Zentral Nummer 1 2 5 1 2 5 1 2 15 25 eCDPZN Germany 53 Pharmacode Two Track 1 1 18 15 eCDNone 54 General Parcel 55 PDF417 1 2 3 4 5 6 7 8 1B 2B 3B 4B 5B 6B 7B 8B eCDNone 1 2 3 4 5 6 15 25 35 45 55 65 56 PDF417 Truncated 1 2 3 4 5 6 7 8 1B 2B 3B 4B 5B 6B 7B 8B eCDNone 1 2 3 4 5 6 15 25 35 45 55 65 57 MaxiCode 1 1 58 QR Code 1 1 1B 1S 59 Code128 Subset A 1 2 3 4 1 2 3 4 1 2 3 4 15 25 35 45 eCDCode128 Page 75 of 93 WWW TEC IT COM 60 Code128 Subset B 1 2 3 4 1 2 3 4 1 2 3 4 15 25 35 45 eCDCode128 61 Code128 Subset C 1 2 3 4 1 2 3 4 1 2 3 4 15 25 35 45 eCDCode128 62 Code 93 Ascii 1 2 3 4 1 2 3 4 1 2 3 4 15 25 35 45 eCD2Mod47 63 Australian Post standard 1 1 1 15 eCDNone customer barcode 64 Australian Post customer 1 1 1 1 eCDNone barcode 2 65 Australian Post customer 1 1 1B 1S eCDNone barcode 3 66 Australian Post Reply Paid 1 1 1B 1S eCDNone barcode 67 Australian Post Routing 1 1 18 15 eCDNone barcode 68 Australian Post Redirection 1 1 1 1 eCDNone barcode 69 ISBN 13 EAN13P5 1 2 3 4 1 2 3 4 1B 2B 3B 4B 18 28 38 48 eCDEAN13 70 Royal Mail 4 State customer 1 1
34. COM Page 61 of 93 11 Contact and Support Information TEC IT Datenverarbeitung GmbH Address Wagnerstr 6 AT 4400 Steyr Austria Europe Phone 43 0 7252 72 72 0 Fax 43 0 7252 72 720 77 Email mailto barcode tec it com Web http www tec it com AIX amp AS 400 OS 400 and are registered trademarks of IBM Corporation and Opteron are trademarks of Advanced Micro Devices Inc is a registered trademark of JetMobile France Debian is a registered trademark of Software In The Public Interest Inc The mark FreeBSD is a registered trademark of The FreeBSD Foundation HTML DHTML XML XHTML are trademarks or registered trademarks of W3C World Wide Web Consortium Laboratory for Computer Science NE43 358 Massachusetts Institute of Technology 545 Technology Square Cambridge MA 02139 and PA RISCO are registered trademarks of Hewlett Packard Company ImageMagick6 is a registered trademark of ImageMagick Studio LLC 40 Landenberg PA 19350 United States Intel and Itanium are registered trademarks of Intel Corporation JAVA is a registered trademark of Sun Microsystems Inc 901 San Antonio Road Palo Alto CA 94303 USA JAVASCRIPTO is a registered trademark of Sun Microsystems Inc used under license for technology invented and implemented by Netscape Microsoft Windows Microsoft Word amp Microsoft Excel are registered trademar
35. Code Error Correction Levels C 8 Micro QR Code Parameters C 8 1 Version Symbol Sizes This table shows the possible user defined symbol sizes for Micro QR Code The symbol size can be defined by the parameter MORversion ndex Index Symbol size rows x cols Index Symbol size rows x cols 0 automatic calculation 3 15x15 1 11x11 4 17 17 2 13 13 Table 39 Micro QR Code Symbol Sizes C 8 2 Error Correction Level This table shows the possible Error Correction Levels for Micro QR Code barcodes The Error Correction Level can be defined by the parameter MQRec1 ndex Index Error Correction Level 0 Low 1 Medium 2 Quartile 3 High not used Table 40 QR Code Error Correction Levels WWW TEC IT COM Page 81 of 93 C 9 Codablock F Parameters C 9 1 Format This table shows the possible formats for Codablock F barcodes The format can be defined by the parameter CBformat ndex Index Format 0 default format 1 GS1 UCC EAN Table 41 Codablock F Parameters C 10 Aztec Code Parameters C 10 1 Symbol Sizes This table shows the possible user defined symbol sizes for Aztec Code The symbol size can be defined by the parameter ACsize ndex Index Symbol size rows x cols Index Symbol size rows x cols 0 automatic calculation 17 83 x 83 1 15x15 18 87 x 87 2 19x19
36. Generating Bitmap Images 9 1 Direct Method Create Bitmap Images with TBarCode X 9 1 1 Samples 9 2 Indirect Method Convert PostScript Output to Bitmap 9 3 Web Applications PHP 9 3 1 Display a Barcode in a Browser WWW TEC IT COM Page 3 of 93 9 3 1 1 9 3 1 2 9 3 2 Example 1 Example 2 Hints for using shell execute 10 Licensing 10 1 10 2 License Key and License Types License File 11 Contact and Support Information Appendix A Library Dependencies A 1 gt gt gt gt gt gt gt gt gt whoo A 2 A 2 1 A 2 2 A 2 2 1 A 2 2 2 A 2 3 A 2 3 1 A 2 3 2 A 2 4 A 2 4 1 Dependencies List Dynamic Dependencies GCC Runtime Libraries GCC for Linux GCC for AIX GCC for HP UX ICONV Libraries Iconv for AIX Iconv for HP UX Iconv for Solaris Shared Library Path Background Linux LD_LIBRARY_PATH Not Finding libtbarcode on Debian 4 HP UX SHLIB Path Being Ignored Not finding libstdc AIX GCC Lib Conflicts Appendix B Troubleshooting FAQ B 1 QJ UJ UJ QD UJ UJ UO D DEM isti C t B3 General Questions Can use the old parameter format as it was used in TBarCode for Linux Version 1 x have troubles with convert gray bars inside the barcode How can encode an XML string with the TBarCode Command How to license the product How can retrieve the hostname for buying a single license TBarCode X reports that a shared
37. K 35 5 55 U 75 16 SYN 36 6 56 V 76 17 37 7 57 77 w 18 CAN 38 8 58 X 78 19 39 9 59 Y 79 y 1A STB 3A 5A 2 7A 2 1 5 3B 5B 7B 1 FS 3C lt 5C 7 1D GS 3D 5D 7D 1E RS 3E gt 7 1 US 3F 5F 7F Table 54 ASCII Table WWW TEC IT COM Page 91 of 93 Appendix G Knowledge Base G 1 Unix Printing HP UX and Solaris 1 1 SVR4 Spooling System Solaris and HP UX uses the SVR4 print services Under the SVR4 spooling system the 1p command accepts the data to be printed and makes a copy of it in the spool directory associated with the destination The destination consists of a printer name and an optional specification of a class to which the printer belongs When the specified printer is busy the job is sent to another printer in the same class The spool directory is normally var spool lp request printer name and the print file is given a unique name to identify both the job and the user Access to the printer is controlled by 1psched daemon It picks up the jobs from the spool directory and sends them to appropriate destination when it becomes available 1psched also keeps a log usually in usr spool 1p 1og The log file would indicate any error in processing the print jobs as well as the user name G 1 2 Interface Programs BSD and SVR4 Both BSD and SVR4 spooling systems support the concept of an interface program The interface program referred to
38. L on demand This program is standard for several Linux distributions and often installed in the spool system by default The converted document can then be passed on to TBarCode X TBarCode X adds barcodes in the proper format either PostScript or PCL WWW TEC IT COM Page 71 of 93 23 Why is there no barcode when I m testing the TBarCode X with LPRng The print data has to include a barcode control sequence for example thes fPCL b20 m0 254 h10 2 d0123456789 tbce The filter must be registered in the printcap file see Section 8 TBarCode X as Spool Filter Sometimes uses raw mode no filtering use lpr instead B 2 4 How to replace printer specific control sequences with TBarCode control sequences All device specific control sequences for example as used by BarSIMM need to be replaced with TBarCode control sequences is an example for the symbology 2015 Interleaved TBarCode X Control Sequence tbcs fPCL b3 m0 254 h13 tHIDE origin BOTTOM Suffix tbce Please note If you want to edit PCL print data directly e g within a spool file during tests please consider that a standard text editor could corrupt the print data during saving umlauts character set differences and CR LF conversion Use a hex editor for PCL editing for example KHexEdit If you omit the parameters m or h TBarCode X will use default values With
39. NIX system is using UTF 8 on the command line there is no change for characters in the code range of 0x00 0x7F ASCII For other characters you have to convert your input to CP1252 e g with the iconv utility TBarCode X V10 1 The character encoding of the system locale LANG is used to determine the encoding of the input data Input data can be in UTF 8 and CP1252 Note By default the filter command uses ANSI ASCII CP1252 encoding Please contact support tec it com if you have questions datafile FILE Sets the file that contains the barcode data FILE be any ASCII or binary file Alternatively you can directly specify the data as command line parameter with ata Example datafile home userXY bcdata dat For the supported character encodings see data checkdigit NUMBER Sets the check digit calculation method The NUMBER of the check digit method can be looked up in Section C 2 Check Digit Methods For specific bar code types the standard check digit is calculated by default Examples C5 checkdigit 3 autocorrect STATE Enables or disables auto correction of input data for specific bar code types Upcoming releases of TBarCode X may support custom encodings through a separate option WWW TEC IT COM Page 30 of 93 Code 205 Interleaved Add a leading zero to the barcode data to produce even number of digits required by the e
40. TBarCode X Barcode Generator Software for Linux UNIX and Mac OS X Version 10 1 User Documentation April 24 2013 TEC IT Datenverarbeitung GmbH Wagnerstrasse 6 A 4400 Steyr Austria t 43 0 7252 72720 f 43 0 7252 72720 77 office tec it com www tec it com WWW TEC IT COM Content Content 1 1 Table of Figures 1 2 List of Tables Disclaimer About TBarCode X 3 1 Features 3 1 1 TBarCode X 3 1 2 2D Symbologies 3 1 3 Barcode Quality 3 2 Usage 3 3 System Requirements 3 3 1 Supported Platforms 3 3 2 Supported Output Devices 3 4 Functional Restriction of the Demo Version 3 5 Version History 3 5 1 TBarCode X Version History 3 5 1 1 What s new in V10 3 5 1 2 What s new in V9 3 5 1 3 What s new in V8 3 5 1 4 What s new in V7 Overview 4 1 The TBarCode X Technology 4 1 1 TBarCode X Command Line Tool 4 1 1 1 Create Barcodes on Command Line 4 1 1 2 Using TBarCode X to Process Data Streams 4 1 2 TBarCode X Library 4 1 2 1 TBarCode X Library Java Interface 4 1 3 TBarCode X Daemon 4 2 About this Manual Installation 5 1 Install TBarCode X from a BIN Package 5 1 1 Common Problems 5 2 Install TBarCode X from an RPM Package 5 2 1 Debian Ubuntu 5 2 2 Common Problems 5 2 3 Remove TBarCode X 5 8 Install TBarCode X from a TAR GZ Package 5 8 1 Prerequisites 5 3 1 1 Prerequisites for AIX 5 8 2 Installation procedure 5 3 2 1 Installation from tar gz files on AIX 5 3 3 Missing usr local directory 5 3 4 Common Problems 5 8
41. a Special identifiers for nesting ECIs QR Code Begin opens a nesting level End closes it IG Global Language Identifier similar to see PDF417 1210 Code128 EAN 128 UCC128 Codablock F WWW TEC IT COM Page 83 of 93 211 FNC2 Code128 EAN 128 UCC128 Codablock F 212 FNC3 Code128 EAN 128 UCC128 Codablock F 213 FNC4 Code128 EAN 128 UCC 128 Codablock F x11 DC1 Code93 Code93Ext x12 DC2 Code93 Code93Ext x13 DC3 Code93 Code93Ext x14 DC4 Code93 Code93Ext xte Rs Record Separator ASCII 1EHex PDF417 QR Code Data Matrix MaxiCode Mode 3 4 SCM xid Gs Group Separator ASCII 1DHex PDF417 QR Code Data Matrix MaxiCode Mode 3 4 SCM x04 Eot End of Transmission ASCII 04Hex PDF417 QR Code Data Matrix MaxiCode Mode 3 4 SCM Table 44 Implemented Escape Sequences Please keep in mind that when translation of escape sequences is enabled you cannot code a backslash 47 directly Use instead Please refer to the Barcode Reference http www tec it com Support Knowledge Base for more information C 11 2 Encoding Bytes or Binary Values With xhh you can encode Bytes in hexadecimal notation e g x01 xFF encodes the Byte 1 and 255 Note when using from the command line Put the input data into single quotes otherwise you need to encode a
42. a filter in a print queue we provide two scripts Script Description filterlprng sh This script should be used if the print queue is configured without local filtering It reads printing data from stdin adds barcodes and sends the result to stdout filterlprng fwd sh This script should be used if the print queue is configured for local filtering It reads printing data from stdin adds barcodes and forwards the result to the original filter This script needs to be modified depending on your local configuration One of these filter scripts need to be added to the printcap file of the print server The following steps are necessary 1 Open the printcap file etc printcap ofthe print server 2 Locate the printer queue for which you want to add TBarCode X Here is an example what a printcap entry could look like printer AE DEN md 0 N mx 0 sd var spool lpd printer af var spool lpd printer printer acct V lp dev 1p0 WWW TEC IT COM Page 47 of 93 lpd_bounce true if usr share printconf util mf wrapper 3 If your entry does not contain the parameter if then perform step 4 otherwise go to step 5 4 The parameters 1pd bounce lpr bound and if need to be added to the printcap entry Add the following lines mined Mens 1 bounce true V lpr bounce true V if usr local share tbarcode10 filterlprng sh Then continue with step 7 5 Remember the original filter in our e
43. an I use the old parameter format as it was used in TBarCode for Linux Version 1 x Yes add the line viformat to the TBarCode X configuration file tbarcode conf Now all barcode control sequences are interpreted as in TBarCode for Linux Version 1 x When you have the TBarCode Daemon installed you will have to restart the daemon before change comes into effect B 1 2 troubles with convert gray bars inside the barcode The convert utility was originally made for image conversion photographs and has a built in antialias filter During conversion from 72 dpi EPS files to bitmap files this filter can produce blurred bars with grayscales There is an option called antialias to switch off the filter but due to a bug in some version this option may work or not Use the following workaround to get a clear image with convert The antialiasing filter doesn t produce gray scaled bars if the resolution of the input file is big enough 1 Create the barcode 4 times bigger than you need it If you have a module width parameter of m0 353 use m1 411 If you have a width parameter w100 use w400 multiply your value with 4 If you have height parameter of h20 use n80 height 4 2 During conversion reduce the size to 25 convert scale 25 barcode eps barcode png 3 Now you have the size you want and an image with clear content B 1 3 How can encode an XML string with the TBarCode Command The best sol
44. arameters C 7 1 Version Symbol Sizes This table shows the possible user defined symbol sizes for QR Code The symbol size can be defined by the parameter ORversion ndex Index Symbol size rows x cols Index Symbol size rows x cols 0 automatic calculation 21 101 x 101 1 21x21 22 105 x 105 2 25x25 23 109 x 109 3 29 x 29 24 113x113 4 33 x 33 25 117 x 117 5 37 x 37 26 121 x 121 6 41x41 27 125 x 125 7 45 x 45 28 129 x 129 8 49 x 49 29 133 x 133 9 53 x 53 30 137 x 137 10 57 x 57 31 141 x 141 11 61 x 61 32 145 x 145 12 65 x 65 33 149 x 149 13 69 x 69 34 153 x 153 14 73 73 35 157 157 15 77X77 36 161 x 161 16 81 x 81 37 165 165 17 85x85 38 169 x 169 18 89 x 89 39 173 x 173 19 93 x 93 40 177 x 177 20 97 x 97 Table 36 QR Code Symbol Sizes WWW TEC IT COM Page 80 of 93 C 7 2 Format This table shows the possible formats for QR Code barcodes The format can be defined by the control sequence QRformat ndex Index Format 0 default format 1 GS1 UCC EAN 2 Industry Table 37 QR Code Format Options C 7 3 Error Correction Level This table shows the possible Error Correction Levels for QR Code barcodes The Error Correction Level be defined by the parameter QRec1 ndex Index Error Correction Level 0 Low 1 Medium 2 Quartile Default 3 High Table 38 QR
45. aris 10 x86 http www tec it com download tbarcodex unix linux Download aspx V10 0 0 Solaris 10 SPARC Other versions Please contact support tec it com Installation Untar if tar gz file and then install with pkgadd d teciticonv XXX pkg On x86 based systems this library will be a side by side installation and does not interfere with the system libiconv On SPARC systems a side by side installation is not possible see below On Solaris x86 platforms force the use of the TEC IT Iconv library with this command before calling tbarcode export LD PRELOAD usr local share teciticonv lib preloadable libiconv so On Solaris SPARC platforms the PRELOAD method cannot be used You have to replace the actual installation of iconv as follows get name of actually installed iconv package pkginfo grep iconv remove the package here we have SMCliconv from sunfreeware pkgrm SMCliconv install the TEC IT iconv library umen cc eov 13 pkg roz eM A 2 Shared Library Path TBarCode X is shipped with the shared library libtbarcode 3 installed in usr 1ocal lib TBarCode X also depends on the GCC runtime libraries If the dynamic linker can t find one of these libraries it will abort loading the program You see messages like error while loading shared libraries libtbarcodel0 so 0 cannot open shared obj
46. as a rectangle Square is default DMsum SUM Sets sum of structured append Possible values 2 16 pMindex NDEX Sets index of structured append Possible values 1 16 pMfile D Sets the file id of structured append Table 17 Data Matrix Options 7 5 13 MaxiCode Settings of these parameters are optional and can be used to fine tune the generation of MaxiCode Short Long Description MCmode MODE Sets the mode of the MaxiCode Possible values E 2 5 MCundercut UNDERCUT Sets the undercut of the hexagons Unit of measurement Percents Possible values 0 100 MCpre PREAMBLE Sets the preamble MCsum SUM Sets the total number of symbols of the symbol chain MCindex NDEX Sets the index of the symbol in the structured appends symbol chain Possible values 1 8 MCservice SERVICE Sets the service class of the structured carrier message MCcountry COUNTRY Sets the country code of the structured carrier message MCpostal POSTAL Sets the postal code of the structured carrier message Table 18 MaxiCode Options 7 5 14 QR Code Settings All of these parameters are optional and can be used to fine tune the generation of QR Code WWW TEC IT COM Page 40 of 93 Short Long Description QRversion VERSION Sets the QR Code version symbol size The possible val
47. as filters under the BSD system is usually a shell script that translates the print file to a format suitable for the output device The tasks performed by the interface program include adding a banner and trailer pages adding or removing a line feed character generating accounting information and setting the correct modes on the output device A standard interface program may be found in usr lib lpf for the BSD systems and in usr spool 1p model for SVR4 System G 1 3 Printer Interface Scripts HP UX There are printer interface script models you can choose from that have been created for you in the usr spool 1p model directory Many of them have names that match the model numbers of Hewlett Packard printers and plotters When you configure your printer into the spooler e g with SAM you must specify which printer model interface script you want to use The model will be automatically copied from the usr spool 1p model directory into the usr spool lp interface directory and given the name that you specified as printer name If you list the usr spool 1p model directory you will find printer interface scripts like HPGL1 draftpro hp2560 HPGL2 dumb laserjet PCL1 dumbplot laserjetIIIS PCL2 fonts hp2565a hp33447a paintjet PCL3 hp2225a hp2566b hp3630a quietjet PCL4 hp2225d hp2567b hp7440a rmodel PRINT3K model hp2227a hp2631g hp7475a rmttroff bf remote hp2228a hp2684a hp7550a ruggedwriter colorpro t
48. ave to add a custom MIME type for PCL documents 1 Open etc cups mime types Or usr share cups mime mime types 2 Add the new MIME type application pcl to the list of Application generated files 6 application pcl is a custom mime type based upon application vnd cups raw 7 If the sym links in CUPS filter directory already exist as they are created by the setup use the existing ones WWW TEC IT COM Page 49 of 93 application vnd hp HPGLhpgl string 0 1B amp N string 0 lt 1B gt E lt 1B gt 0B String 0 lt LB gt S 1B sErinq 0 201B N string 0 BP string 0 IN string 0 DF N string 0 BPINPS tcontains 0 128 lt 1B gt 12345X contains 0 1024 contains 0 1024 HPGL application pcl string 0 lt 1B gt E string 2 lt 1B gt 0B string 0 lt 1B gt contains 0 128 lt 1B gt 12345x contains 0 1024 LANGUAGE PCL contains 0 1024 LANGUAGE PCL The lines that should be added are marked bold Use tab characters after application pcl no spaces Insert the new mime type application pcl before application vnd cups raw since it needs higher priority The type application vnd cups raw must remain in the file 3 CUPS 1 0 x 1 1 x Open the MIME type conversion file etc cups mime convs Add the conversion rule for application pcl application pdf application postscript 33 pdftops application postscript appli
49. below creates a Data Matrix barcode with the data content 2D Code tbarcode fPS oBarcode ps b7l m0 508 d 2D Code Parameter Description 5 Use PostScript output format default oBarcode ps Write barcode to the output file Barcode ps specify full path if required b71 Generate Barcode Type Data Matrix 71 see C 1for more types m0 508 Set the module width X Dimension to 0 508 mm d 2D Code Encode the data 2D Code 7 1 2 Create a Barcode in PCL 5 HP GL 25 Format The command below creates an EAN 13 barcode with the data content 123456789012 tbarcode oEANIS pol b13 m0 508 9 123456 789012 Parameter Description fPCL Use PCL output format oEAN13 pcl Write barcode to the output file EAN13 pcl specify full path if required b13 Generate Barcode Type EAN 13 13 see C 1for more types m0 508 Set the module width X Dimension to 0 508 mm d 123456789012 Encode the data 123456789012 the check digit is calculated automatically 7 1 3 Create a Barcode in PDF Portable Document Format The command below creates an EAN 13 barcode with the data content 123456789012 tbatcode oEANI3 pdf 13 m0 508 d 123456789012 Parameter Description fPDF Use PDF output format oEAN13 pdf Write barcode to the output file EAN13 pdf specify full path if required b13 Generate Barcode Type EAN 1
50. cation vnd cups postscript 66 pstops application pcl application vnd cups raw 66 i usr local share tbarcodel0 filtercups pcl sh CUPS 1 2 x and later Open the MIME type conversion file etc cups mime convs Add the conversion rule for application pcl application pdf application postscript 33 pdftops application postscript application vnd cups postscript 66 pstops application pcl application vnd cups raw 66 filtercups pcl sh Retrieve your CUPS installation directory cups config serverbin It should be usr lib cups Filters must be then in the filter subdir usr lib cups filter Create a sym link to place the TBarCode filter script into this sub dir s usr local share tbarcodel0 filtercups pcl sh usr lib cups filter filtercups pcl sh 4 Restart the printing service etc init d cups restart 8 If the sym links in CUPS filter directory already exist as they are created by the setup use the existing ones WWW TEC IT COM Page 50 of 93 8 3 AIX s Printing System To install TBarCode X in an AIX printer queue follow these steps 1 Choose in which printer queue you want to use TBarCode X 2 First do a listing of the filter attributes to see if there is already a custom filter 1 and a general filter reference configured for your printer lstvirpre 9 lt QueueName gt 3 Next we install TBarCode X as new filter to the virtual queue The attributes 1 2 3 4
51. ce If there are no printer definitions available you need to install them 8 4 HP UX s Printing System This section describes how to setup TBarCode X as a filter in the standard Ip spooler coming with HP UX 11 xx Please read Section G 1 Unix Printing HP UX and Solaris for background information First you should perform a basic test to see if the filter works on your system These tests are described in Section 6 1 2 Run TBarCode as Filter 8 4 1 Spool System HP UX 11 xx can use the Ip spooler or the HPDPS spooler both can be configured with SAM Below we focus on the SVR4 based 1 spooler which is the default printing mechanism in HP UX 11 WWW TEC IT COM Page 51 of 93 If you have installed LPRng which is also available for HP UX the installation procedure would be the same as for Linux HPDPS is also supported by TBarCode X but the installation is more complex Please contact our support if you need help 8 4 2 Using a Local Printer TBarCode X can be integrated into the model files located in usr lib lp These files are scripts that handle and describe the characteristics supported by a printer You can either add an own model file to this directory or modify an existing one It is very easy to call the filter inside such a script each time a printout is made the filter will be called because the script is run for each spool job file Which model file script is used and which model file script has to
52. code conf or tbarcoded conf In the current directory In the directory of the executable In usr local share tbarcodel0 4 For Mac OS in tecit TBarCode10 eo pa s The path and the name of the configuration file can be overwritten with the command line option inifile An administrator can edit these files to set global settings for TBarCode X These settings are applied each time when a new instance of TBarCode X is started The settings in the configuration files have the same functionality as the settings on the command line of TBarCode X 7 6 22 Syntax of a Configuration File The syntax of the TBarCode X configuration files is similar but not identical to the syntax of most UNIX configuration files A line of configuration file contains either an option or a barcode setting or acomment 7 6 2 1 Options and Barcode Settings These have the following syntax option option value 7 6 2 2 Comments If the first character a line is then this line is treated as comment its content is ignored This is a comment WWW TEC IT COM Page 45 of 93 7 6 3 tbarcode conf The configuration file tbarcode conf can contain options and barcode settings as described Section 7 4 Options and 7 5 Barcode Settings Example Sample tbarcode conf memory 524288 SAP viformat defaultset 1 errorfile tmp tbarcode log nosyslog nostderr trace verbose globalxoffset 10
53. double backslash V to get a single one gt The specified values are translated to the default codepage used by the adjusted bar code C 11 3 Symbology Specific Control Characters If you have enabled translation of Escape sequences parameter translation on you can encode the following control characters barcode type dependent The input data must contain the escape sequence that corresponds to the control character Note when using from the command line Put the input data into single quotes e g 11231210456 otherwise you would need a double backslash like 123 210456 Control character Escape Sequence Barcode type s FNC1 V210 Code128 EAN128 UCC128 FNC2 211 Code128 EAN128 UCC128 1212 Code128 EAN128 UCC128 4 1213 Code128 EAN128 UCC128 DC1 11 Code93 Code93Ext DC2 12 Code93 Code93Ext DC3 13 Code93 Code93Ext DC4 x14 Code93 Code93Ext Rs 1 MaxiCode Mode 3 4 SCM Gs 1 MaxiCode Mode 3 4 SCM Eot x04 MaxiCode Mode 3 4 SCM Table 45 Extended Escape Sequences WWW TEC IT COM Page 84 of 93 C 12 Formatting Barcode Data The Format string specifies how the input data should be processed prior to encoding it please do not mix up the Format with the Ratio Format Placeholders in the specified format string can be mixed with constant data characters to build a final barcode data string Also control charac
54. e TBarCode Scanner The TBarCode Scanner is a software decoding solution It is available on re quest just contact office tec it com By setting the type of decoder TBarCode X can optimize the size of the barcode to ensure optimal readability Example scenario You are receiving documents per FAX 200 dpi and you want to decode the barcodes on a server software decoding solution You can optimize the printed barcodes by specifying the following options decoder software dpi 200 sizemode MINIMAL dpi DPl Sets the resolution of the image Unit of measurement Dots per inch dpi xpos POSITION Sets the absolute or relative x position of the barcode Unit of measurement millimeters The positioning mode absolute or relative positioning can be set with Examples pos abs xpos 100 pos rel xpos 10 5 y ypos POSITION Sets the absolute or relative y position of the barcode Unit of measurement millimeters The positioning mode absolute or relative positioning can be set with Examples pos abs ypos 100 pos rel ypos 10 5 origin ORIGIN Sets the origin of the barcode The origin is the coordinate that can be set with xpos and ypos Possible values top origin is the top left corner of the barcode bottom The origin is the bottom left corner of the barcode Example origin TOP Table 8 Barcode Siz
55. e and Position WWW TEC IT COM Page 34 of 93 7 5 44 Text Settings These parameters can be used to fine tune the output of the human readable text They are opti onal Short Long Description t text POS Sets the position of the barcode of the readable barcode text or hides the barcode text Possible values below Draws the text below the bars default for most barcodes above Draws the barcode text above the bars h hide Hides the barcodes text draws only the bars Examples align ALIGNMENT Sets the horizontal text alignment Possible values default left center right Example align left fontsize SIZE Sets the size of the readable barcode text Unit of measurement Points font NAME Sets the font that is used for drawing the readable barcode text The font is only relevant when creating PostScript or PCL output Bitmaps do not yet support text output Example Postscript font Helvetica font Helvetica Bold Example PCL font Courier font Courier Bold In PCL the font names are mapped to the PCL font numbers as following Courier 4099 fixed CG Times 4101 proportional Univers 4148 proportional nie 16602 proportional default 16901 proportional Helvetica 16388 proportional To make the font bold simply add bold after the font
56. e notch height Unit of measurement millimeters Example notchheight 2 0 printratio RATIO Sets the print ratio ratio of narrow to wide bars and spaces See also Print Ratio in the Barcode Reference Example eal quietzoneunit UNIT The unit of quiet zones see also quietzoneh and quietzonev Possible values none No Quiet Zone default amp mod ues In Number of Modules gt GUT iive Millimeters mils Mils 1 Mil 1 1000 Inch Inches Wo CX ilu Pixels Example quietzoneunit mod quietzoneh UNITS Sets the width of the horizontal quiet zone A horizontal quiet zone is the empty space in the left and the right of a barcode Unit of measurement see quietzoneunit Example quietzoneh 10 quietzonev UNITS Sets the height of the vertical quiet zone A vertical quiet zone is the empty space in the top and the bottom of a barcode Unit of measurement see quietzoneunit WWW TEC IT COM Page 36 of 93 Example quietzonev 10 Table 10 Barcode Appearance Options 7 5 6 Quality Enhancement These parameters are used for enhancing bar code quality depending on output format of these parameters are optional Short Long Description dpi DPI Sets the resolution of the image Unit of measurement Dots per inch dpi optimalwidth Opti
57. e page support TBarCode X Iconv Library Download Links V9 0 2 GNU V1 13 HP UX 11 11 PA 2 0 http www tec it com download Unix HPUX dep tec iconv hpux 11 11 pa tar gz V9 0 4 GNU V1 11 1 UX 11 23 1 64 htto www tec it com download Unix HPUX dep tec iconv hpux 11 23 ia64 tar gz V9 1 0 GNU V1 13 1 HP UX 11 31 1 64 http Awww tec it com download tbarcodex unix linux Download aspx Other versions Please contact supporta tec it com Installation Untar into root directory to install into usr local share teciticonv This library will be a side by side installation and does not interfere with the system libiconv Force the use of the TEC IT iconv library with this command before calling tbarcode export LD PRELOAD usr local share teciticonv lib libiconv so 1 3 3 Iconv for Solaris On Solaris there may be problems with PDF417 QR Code and Micro QR bar code generation due to missing code page s in the pre installed iconv library Missing CP437 conversions Missing SHIFT JIS conversions Solution TEC IT provides the following pre built ibiconv binaries with full code page support WWW TEC IT COM Page 65 of 93 TBarCode X Iconv Library Download Links V9 0 0 GNU Iconv V1 12 Solaris 10 SPARC Seefolder SetupTBarCode dependences in the available TBarCode X installation package V9 0 5 GNU Iconv V1 13 1 Sol
58. ead the next FAQ item for additional information WWW TEC IT COM Page 72 of 93 B 2 7 How send a file without modification to a printer How can avoid that my file is processed by spool filters e g the magic filter This can be achieved with a remote queue In order to pass the file directly to this queue you have to use 1pr with parameter For example lpr P PCLQueue remotehost b file pcl Here is an example how to filter a text file with the TBarCode X command line application and then send it directly to a printer 019202606605 tile loaweocles joel lpr PHP4050PCL karthago b file with barcodes pcl B 2 8 LPRng Spool System How can find out what data the printer gets from the queue spooler You can stop an individual printer with lpc stop VSicOp When document is printed on the print queue PrinterxYZ the print job is created but not sent to the printer The print job can be found in the spool directory of the printer for example var spool lpd PrinterXYZ Copy this data to analyze the print job When you restart the print queue all pending print jobs are processed 1 start PrinterXYZ B 3 Wherel can get more help Your question is not listed here Please contact us see Section 11 Contact and Support Information We do our best to support our customers WWW TEC IT COM Page 73 of 93 Appendix C Barcode Pa
59. ect file No such file or directory The solution for this problem is to add the library installation path to the shared library search path of your system See next chapters for how to do this for your operating system A 2 1 Background Each version of UNIX has its own specific method of searching for libraries specifically this process is done by a program called 10 50 or on HP UX dld so or similar You can add the library path as system wide default or you can prefer to use a wrapper script that sets the library path appropriately before launching the executable fyou have a compelling reason to add a path to many programs you can change the system s default search path 13 Some TBarCode X binaries are statically linked and contain no libtbarcode WWW TEC IT COM Page 66 of 93 Setting a specific library path in a wrapper script can provide a workaround in the rare case where two applications require incompatible versions of a library In addition to the system search process each program has an embedded library search path The following commands list the embedded library search path of executables and libraries Use them for trouble shooting Linux Solaris HPUX ldd s binary HPUX chatr binary AIX rdump H binary Fortrouble shooting shared library problems see also 1 1 List Dynamic Dependencies A 2 2 Lin
60. ed on your system WWW TEC IT COM Page 16 of 93 The following steps need to be performed as administrator user root 1 Opena new console terminal 2 Type the command rpm i tbarcodel0 xxx rpm The name of your package might be different Replace the above file name with the file you have downloaded or received for your operating system 3 Register the TBarCode X libraries see section A 2 Shared Library Path 4 Check the execute permissions of TBarCode X see Section 5 6 File Permissions 5 Installation is complete Steps 3 and 4 are actually optional but they are recommended to ensure that everything is installed properly gt Instead of using the rpm command in step 2 you can use any package manager that comes with your Linux distribution for example gnorpm kpackage etc 5 2 1 Debian Ubuntu On Debian based Linux distributions such as Ubuntu the command might be missing In this case consult the manual of your Linux distribution and look for an alternative command On Ubuntu for example you can install RPM packages using the following command alien i tbarcodel0 xxx rpm 5 2 2 Common Problems Failed dependencies e g GCC runtime libraries missing see A 1 Dependencies Shared library libtbarcode not found see A 2 Shared Library Path 5 2 3 Remove TBarCode X If you have installed TBarCode X from a RPM package you can remove it with the following step
61. ee section A 2 Shared Library Path 4 Check the execute permissions of TBarCode X see section 5 6 File Permissions 5 Installation is complete Step 3 4 is optional but recommended to ensure that everything is installed properly Here is an example that shows what the installations procedure could look like SuSE93 temp tar xzf SetupTBarCode tar gz SuSE93 temp 15 1 total 1058 AEWRE Xi X root 120 2005 12 20 09 37 20 SCONE roor TSA 200521220 09530 AEWRE XI X Toot 216 2005 11 08 11 45 SetupTBarCode epupepeepee 1 foot root 1078102 2005 12 20 09 35 SetupIBartode tar gz SuSE93 temp cd SetupTBarCode SuSE93 temp SetupTBarCode install sh TBarcode for Unix Installation Copying include files Copying libraries Copying tbarcode files Registering TBarCode Library Creating link for TBarCode executable Setting file permissions Installation finished SuSE93 temp SetupTBarCode 5 3 2 1 Installation from tar gz files on AIX 1 First convert gz to tar by typing the following command gzmpEsdESsetuplbarecodesvlomomOANXSMSPEOMEOTIgz 2 Extract the tar file to the directory using this command tar xf SetupTBarCode V10 0 0 AIX5 3 PPC tar WWW TEC IT COM Page 18 of 93 5 3 3 Missing usr local directory TBarCode X V10 setup scripts create all required directories for you Earlier versions don t create all required directories so follow these s
62. emaddr shell exec path to subprocess 12 taken from php net WWW TEC IT COM Page 60 of 93 10 Licensing 10 1 License Key and License Types As long as you have not licensed TBarCode X an additional horizontal bar will be printed across the generated barcodes Usually this horizontal bar does not affect the readability of the code for evaluation purposes Purchasing a license removes this restriction Please contact TEC IT for available license modes Just send an email to office tec it com 10 2 License File The license file is named license ini and contains the license information and your license key Please copy this file into the directory of TBarCode X usr local share tbarcode10 Or for Mac OS tecit TBarCode10 You have to copy this file to each system client where you want to use TBarCode X Overwrite the original demo license ini file that was installed during setup On systems where TBarCode X Daemon is installed the background server process needs to be restarted after installing the License ini file To restart the background server process call usr local share tbarcodel0 tbarcoded restart You need root privileges to do this If you cannot find tbarcoded then you are probably using a TBarCode X version without TBarCode X Daemon In this case there is no need to restart any process Additional information can be found on our web site http www tec it com WWW TEC IT
63. ermissions of TBarCode X see Section 5 6 File Permissions 4 Installation is complete You can verify whether the package was installed correctly by typing the following command pkginfo 1 tbarcode WWW TEC IT COM Page 19 of 93 5 4 1 Remove TBarCode X If you have installed TBarCode X on a SCO operating system you can remove it with the following steps as administrator 1 Opena new console terminal 2 the command pkgrm tbarcode 3 Uninstallation is complete 5 5 Install TBarCode X on Mac OS When you are using a Mac operating system Mac OS X you receive TBarCode X as an installation package which was built with the tool PackageMaker The package usually has the extension mpkg and the file has a name like TBarCodeX 10 0 0 mpkg The name of your package might be slightly different The following steps need to be performed you need an administrator password 1 Open the package by double clicking it 2 Follow the instructions of the installation wizard TBarCode has been installed at following paths tecit TBarCode10 Library Frameworks TBarCode framework gt TBarCode Framework 5 5 1 Remove TBarCode X If you have installed TBarCode X on Mac OS you can remove it by moving following directories to the Trash tecit TBarCodel0 Library Frameworks TBarCode framework 5 6 File Permissions The executables of TBarCode X require certain file permissions After i
64. he trace level defines the amount of log messages that are written to an error file syslog or stderr Possible values sorted from minimal to maximal information output error default warning into verbose Example trace INFO Table 52 TBarCode Daemon Error Message and Debug Options E 3 4 Informative Output Short Long Description help Shows a help text for general option version Shows the version information Table 53 TBarCode Daemon Informative Output WWW TEC IT COM Page 90 of 93 Appendix F ASCII Table This table helps you to enter the Print Controls in Hex Format For each character an equivalent hexadecimal code exists For example C 43 hexadecimal or 24 32 hexadecimal Hex Code Symbol Hex Code Symbol Hex Code Symbol Hex Code Symbol 0 NUL 20 space 40 60 1 SOH 21 41 A 61 a 2 STX 22 42 62 b 3 ETX 23 43 63 4 24 44 D 64 d 5 ENQ 25 96 45 E 65 e 6 ACK 26 amp 46 F 66 f 7 BEL 27 i 47 G 67 g 8 BS 28 48 H 68 h 9 HAT 29 49 69 i A LF 2A 4 J 6A j B VT 2B 4B K 6B k FF 2C j 4C L 6 D CR 2D 4D M 6D m E SO 2E 4E N 6E n F ST 2F 4F 6F 10 SLE 30 0 50 P 70 p 11 CS1 31 1 51 Q 71 q 12 DC2 32 2 52 R 72 r 13 DC3 338 3 53 5 73 5 14 DC4 34 4 54 T 74 t 15 NA
65. hinkjet deskjet and many others If you have an HP printer you will probably find a model script that matches its model number or name Those interface model scripts that match your printers typically do not need to be changed except we want to include TEC IT barcode software gt In order to use TBarCode X we need some shell programming to customize the printer interface model scripts to meet our printing needs WWW TEC IT COM Page 92 of 93 If you do not have an HP printer try using the dumb interface model You might have to modify it to be able to use all of the features of your non HP printer but dumb should work for basic ASCII text printing If the dumb printer interface model script does not work contact your printer supplier for a UNIX line printer spooler interface script or try the script that most closely matches your non HP printer type G 1 4 Links Printing under Unix BSD SVR4 http www ussg iu edu usail peripherals printers Adding print queues BSD Solaris IRIX HP UX http www fisica uniud it cabras assistenza print tek man P740man 74086 htm AIX HP UX Printing Guide Interoperability http www rz uni karlsruhe de Uni RZ Betriebssysteme HP UX doc interworks Tech aix_hpux_interop chap08 print html WWW TEC IT COM Page 93 of 93
66. ifferent output formats Vector image formats such as PostScript PS EPS and PCL Bitmap image formats BMP GIF JPG PNG and TIF The following example command creates a barcode of type Code 128 that contains the data abc1234 tbarcode output barcode eps barcode 20 data abc1234 The resulting barcode is stored as Encapsulated PostScript eps in the file barcode eps 4 1 1 2 Using TBarCode X to Process Data Streams With the TBarCode X command line application you can also process data streams like print jobs In this filter mode the TBarCode X command line application reads data from standard input stdin and writes the results to standard output stdout All barcode related control sequen ces are replaced by the corresponding barcodes automatically For example tbarcode filter input ps output ps This command processes the PostScript document input ps and searches for certain barcode control sequences in the file The control sequences are replaced with barcodes The resulting document that includes the barcodes is written to output TBarCode X can be installed in the printing system to automatically filter print jobs 4 1 2 TBarCode X Library TBarCode X Library also referred to as LibTBarCode is available as static and shared library and as framework for Mac OS It provides functions to generate barcodes The TBarCode X command line application uses the functions of the library t
67. into the 1p spool system In order to support filtering with remote printer queues we use Virtual printers as workaround Proceed as described below 8 5 1 1 Register Filter Setup During the installation phase the setup program registers automatically the TBarcode X filters using the following commands usr sbin lpfilter f tbarcode ps F usr local share tbarcodel0 filterlp ps fd For experts only Please contact TEC IT support if you want to change the netstandard interface script 19 Please contact TEC IT support if the Solaris filter scripts are not part of your installation Filter registration by the setup is implemented in TBarCode X V9 0 4 and later versions WWW TEC IT COM Page 54 of 93 usr sbin lpfilter f tbarcode pcl F usr local share tbarcodel0 filterlp pcl fd tbarcode psisthe filter used for print jobs in PostSript printer language tbarcode pclis the filter used for print jobs in PCL printer language TIPS remove the filter Z asm isbmy lpislEec f send content of the registered filter to console 1 8 5 1 2 Create Virtual Printer In order to use the filter create a printer based on the tbarcode input Example local printers PostScript lpadmin p tbcprintlocall v dev bpp0 D TBarCode Printer on parallel port lpadmin p tbcprintlocall m lp printer model n lt path ppdfile gt lpadmin p tbcp
68. ion setup New installation path usr local share tbarcode9 3 5 1 3 What s new in V8 New Barcode type Aztec Code inclusive the according settings Several 1D bar codes have been implemented DAFT Code Italian Postal 2 of 5 DPD Callback functions for MaxiCode New attributes for parameter bearer type New installation path usr local share tbarcode8 3 5 1 4 What s new in V7 Image output is now integrated in TBarCode X ImageMagick is not required anymore The code base is now identical with TBarCode DLL Library for Windows and Windows Mobile Detailed version info including version of TBarCode library and revision number New parameters linebyline insertpattern onnodata compress bearerwidth bearertype reduction defaultset mustfit decoder sizemode align RSSseg New parameters for multiple barcodes multiple rows columns hdist vdist datalimit dynamicsize structapp Deprecated parameters guardline barsimmdefaults Filter scripts now run with bin sh instead of bin bash New installation path usr local share tbarcode7 TBarCode without Daemon Memory limitation removed TBarCode automatically reallocates more memory if required More samples added to user documentation WWW TEC IT COM Page 12 of 93 4 Overview This section gives you some insight how TBarCode X works and in which ways you can use it This section is not essential if you are only looking for the installation instructions yo
69. it of measurement degrees counterclockwise only 90 angles are sup ported Possible values 0 default 90 180 270 Examples zo rot 180 sizemode MODE Sets the mode that determines the barcode size fit The parameters width and height determine the size WWW TEC IT COM Page 33 of 93 module parameter modulewidth determines the size width minimal The parameters decoder and 1 determine the size The default size mode is fit If no width and or height is specified the bar code size depends on internal default values When sizemode MINIMAL is used TBarCode X automatically considers the decoding solution and the resolution of the document It will then create a barcode with minimal size that should be optimally readable under the given conditions Example scenario You are receiving documents per FAX 200 dpi and you want to decode the barcodes on a server software solution You can optimize the printed barcodes by specifying the following options decoder software dpi 200 sizemode MINIMAL decoder TYPE Specifies the type of barcode decoder which will be used for scanning the barcode Used in combination with sizemode MINIMAL Possible values any Default The type of decoder is unknown hardware A hardware barcode scanner such as a handheld device software A software barcode decoder tbarcode Th
70. ity Modulo 10 eCDMod10Kor 24 Method for Planet Modulo 10 eCDMod10Pla 25 Method for Italian Postal 2 5 Modulo 10 based eCDMod1OltlPst25 26 Modulo 36 ISO IES 7064 for DPD Barcode eCDMod36 27 Modulo 16 for Codabar Barcode eCDMod16 28 Modulo 10 with Luhn algorithm for Credit Cards IMEI etc eCDMod10Luhn Table 29 Check Digit Methods and Enumerators PDF417 Parameters C 3 1 Encoding Mode The PDF417 encoding mode cane be set with the parameter PDFmode ndex Index Mode 0 Normal default encoding 1 Binary Compaction Table 30 PDF417 Encoding Mode C 4 Micro PDF417 Parameters C 4 1 Version Symbol Sizes This table shows the possible user defined symbol sizes for Micro PDF Code The symbol size can be defined by the parameter MPDFversion ndex Index Symbol size rows x cols Index Symbol size rows x cols 0 automatic calculation 18 3x15 1 1x11 19 3x20 2 1x14 20 3x26 3 1x17 21 3x32 4 1x20 22 3x38 5 1x24 23 3 x 44 6 1x28 24 4x4 7 2x8 25 4x6 8 2x11 26 4x8 9 2x14 27 4x10 10 2x17 28 4x12 11 2x20 29 4x15 12 2x23 30 4x20 13 2x26 31 4 x 26 14 3x6 32 4x32 15 3x8 33 4 38 16 3x10 34 4x44 17 3x12 Table 31 Micro PDF417 Symbol Sizes WWW TEC IT COM Page 78 of 93 C 4 2 Mode The Micro PDF417 mode can be set with the parameter MPDFmode ndex Index Format Defau
71. ix Settings 7 5 13 MaxiCode Settings 7 5 14 QR Code Settings 7 5 15 Micro QR Code Settings 7 5 16 Codablock F Settings 7 5 17 Aztec Code Settings 7 5 18 RSS Expanded Stacked Settings 7 5 19 Composite Barcode Settings 7 5 20 Multiple Barcodes 7 5 21 Deprecated Barcode Settings 7 6 TBarCode X Configuration Files 7 6 1 Path of Configuration Files 7 6 2 Syntax of a Configuration File 7 6 2 1 Options and Barcode Settings 7 6 2 2 Comments 7 6 3 tbarcode conf 7 6 4 tbarcoded conf 7 6 5 Priority of Options and Barcode Settings TBarCode X as Spool Filter 8 1 LPRng Printing System 8 1 1 Testing the Printer Filter 8 2 CUPS Printing System 8 2 1 Setting up TBarCode X Spool Filter for PostScript Output 8 2 2 Setting up TBarCode X Spool Filter for PCL Output 8 3 AIX s Printing System 8 3 1 No f1 Attribute Available 8 4 HP UX s Printing System 8 4 1 Spool System 8 4 2 Using a Local Printer 8 4 3 Using a Remote Printer 8 4 4 Printing Script HP UX 11 00 or HP UX 11 23 8 4 5 Printing Script HP UX 11 23 with Iconv Preload 8 4 6 Printing Script HP UX 11 11 8 4 7 Other Printing Scripts 8 4 8 Make a Test Print 8 5 Solaris Printing System 8 5 1 Spool System Integration 8 5 1 1 Register Filter Setup 8 5 1 2 Create Virtual Printer 8 5 1 3 Print To Filtered Printer 8 5 2 Print Barcode Filter Test File 8 5 2 1 Background Information Solaris Printing 8 6 TBarCode X with UNISPOOL Holland House B V 8 7 SAP R 3 and mySAP Integration
72. ks of Microsoft Corporation Mac and Mac OS are trademarks of Apple Inc registered in the U S and other countries Navision is a registered trademark of Microsoft Business Solutions ApS in the United States and or other countries Oracle is a registered trademark of Oracle Corporation PCL6 is a registered trademark of the Hewlett Packard Company PostScript is a registered trademark of Adobe Systems Inc SAP Logo R 28 R 38 ABAP SAPscript amp mySAPO are trademarks or registered trademarks of SAP AG in Germany and several other countries SCO and SCO OpenServer are registered trademarks of The SCO Group Inc in the United States and other countries Solaris is a registered trademark of Sun Microsystems Inc SPARC is registered trademark of SPARC International Inc SUSE is registered trademark of SUSE AG a Novell business UNIX is a registered trademark of The Open Group other products mentioned are trademarks or registered trademarks of their respective companies If any trademark on our web site or in this document is not marked as trademark or registered trademark we ask you to send us a short message mailto office tec it com WWW TEC IT COM Page 62 of 93 Appendix A Library Dependencies A 1 Dependencies The TBarCode X software uses shared libraries to provide a smaller total distribution size You have to make sure that all required libraries dependencies are installed o
73. ld only be used for debugging and not in a production system Example errorfile tmp tbarcode errors log syslog Logs all messages using the syslog service nostderr Prevents messages from being written to standard error channel stderr trace LEVEL Sets the trace level to a certain value The trace level defines the amount of log messages that are written to an error file syslog or stderr Possible values sorted from minimal to maximal information output error default warning info verbose Example trace INFO onerror ACTION Defines the action if wrong barcode settings are applied Possible values ignore message default When using the default setting onerror message TBarCode X reports wrong barcode parameters Additionally the exit value is set to the corresponding error code When onerror ignore is set TBarCode X ignores errors onnodata ACTION Defines the action if the data parameter is missing d or data Possible values ignore message default When using the default setting onnodata message TBarCode X reports missing barcode data Additionally the exit value is set to the corresponding error code When onnodata ignore is set TBarCode X ignores missing barcode data Table 4 Error Message and Debug Options 7 4 5 Informative Output Use one of these parameters for displaying help information
74. live 4168 Claredon 4140 Coronet 4116 Courier 4099 Garamond Antiqua 4197 Letter Gothic 4102 Marigold 4297 CG Omega 4113 CG Times 4101 Univers 4148 Table 48 PCL Font Numbers WWW TEC IT COM Page 86 of 93 Appendix D Using Version 1 x Format TBarCode for Linux Unix Version 1 x was the predecessor of TBarCode X Version 2 0 and newer The format of the required command line parameters and barcode control sequences has changed from version 1 x to current version of TBarCode X But TBarCode X can be run in a compatibility mode where it supports the old barcode control sequences Here is an example of an old barcode control sequence tbcs b55 n w40 20 r90 d123abc tbce In TBarCode X the same barcode can be created with the following barcode control sequence uec S995 Seale wA 20 The parameter viformat enables the compatibility mode When this parameter is set all barcode control sequences are interpreted as in TBarCode for Linux Unix 1 x It is best to specify the parameter viformat in the TBarCode X configuration file tbarcode conf But be aware that you cannot mix old and new barcode control sequences needs less space more intuitive gt Use viformat if you upgrade from version 1 x to the actual version and if you don t want to change the Filter Control Sequences in your application gt In SAP R 3 due to the limitation of length for Print controls
75. lt format UCC EAN GS1 128 Emulation Code 128 Emulation Code 128 FNC2 Emulation Linked UCC EAN GS1 128 05 Macro 06 Macro CC A Data Mode 8 CC B Prefix Table 32 Micro PDF417 Modes o C 5 Data Matrix Parameters C 5 1 Symbol Sizes The user defined symbol sizes for Data Matrix can be set with the parameter DMsize I ndex Index Symbol size rows x cols Index Symbol size rows x cols 0 automatic calculation 16 64 x 64 1 10x 10 17 72x72 2 12x12 18 80 x 80 3 14x14 19 88 x 88 4 16 x 16 20 96 x 96 5 18x 18 21 104 x 104 6 20 x 20 22 120 x 120 7 22x22 23 132x 132 8 24 x24 24 144 x 144 9 26 x 26 25 8x18 10 32x32 26 8x32 11 36 x 36 27 12x26 12 40 x 40 28 12x36 13 44 x 44 29 16 x 36 14 48 x 48 30 16 x 48 15 52x52 Table 33 Data Matrix Symbol Sizes C 5 2 Format The Data Matrix format can be set with the parameter DMformat ndex Index Format 0 Default format 1 GS1 UCC EAN 2 Industry 3 Macro 05 4 Macro 06 Table 34 Data Matrix Formats WWW TEC IT COM Page 79 of 93 C 6 MaxiCode Parameters C 6 1 Mode This table shows the possible modes for MaxiCode The mode can be defined by the parameter MCmode ndex Index Mode 2 SCM Numeric 3 SCM Alphanumeric 4 Default Mode 5 Full EEC Table 35 MaxiCode Modes C 7 QR Code P
76. m there are specific versions of the GCC runtime libraries required Please download and install the missing gcc runtime libraries by using the information below 1 2 1 for Linux To find out which gcc version or libgcc version is required for your TBarCode X binary follow the notes in the README file coming with the installation see installation directory If there is no readme file available then please contact support tec it com WWW TEC IT COM Page 63 of 93 A 1 2 2 GCC for TBarCode X Required Runtime Libraries Download Links V7 0 4 AIX5 2 PPC 3 3 2 V9 0 2 AIX5 2 PPC libstdcplusplus 3 3 2 TEC IT Package untar into root dir http www tec it com Download Unix AlX gcc libs 3 3 2 AlX5 2 tar qz Package download libgcc and libstdc for AIX 5 2 ftp ftp software ibm com aix freeSoftware aixtoolbox RPMS ppc gcc V10 0 0 AIX5 3 PPC libgcc 3 3 2 libstdcplusplus 3 3 2 Package download libgcc and libstdc for 5 3 ftp ftp software ibm com aix freeSoftware aixtoolbox RPMS ppc gcc Others Please see the README file in the products installation directory if available or contact TEC IT Support support gtec it com 1 2 3 GCC for HP UX TBarCode X Required Runtime Libraries Download Links V2 0 2 gcc libs or gcc 4 0 2 hppa64 UX 11 11 2 0 64 http hpacxx external hp com gcc V7
77. makes it possible to print barcodes on any PCL or PostScript compatible printer does not require costly barcode extension cartridges or special barcode fonts Thus you can print barcodes in a complete device independent way works in a completely transparent way is available as precompiled barcode engine for Linux AIX and Mac OS X Other operating systems on request 3 1 2 2 Symbologies Besides linear barcodes e g 20 20f5 ITL Code39 Code128 128 EAN UPC TBarCode X also supports 2D symbologies like PDF417 Data Matrix MaxiCode QR Code Micro QR Code Aztec Code These 2D symbologies feature very high data capacities with enhanced data security and are required by several enterprises for their documents and labels a selection MaxiCode by UPS PDF417 by General Motors PDF417 and MaxiCode by the AIAG B 10 Automotive Industry Action Group 3 1 3 Barcode Quality TBarCode X offers the possibility to specify all barcode parameters these are for example The module width in absolute units completely device independent Selection of the subsets of Code128 subsets A B and C and automatic mode Advanced 2D bar code properties PDF417 error correction level etc barcodes are created as vector graphics EPS and PCL therefore utilizing the maximum of the available printing resolution And many others 3 2 Usage There are two main
78. mizes the module width for the given output resolution 72dpiraster This option reduces aliasing effects in bitmaps and minimizes printing tolerance For low output resolution the module width optimization is a must to get a readable bar code Use this parameter in combination with the dpi parameter When this setting is turned on the X dimension module width will become exactly a multiple of a single printer dot or Pixel Module widths with fractional parts are avoided This option is useful if you want create bitmap barcodes with maximal quality All drawing operations will fit exactly into the pixel raster of a bitmap See also Optimize Barcode for the Output Device in the Barcode Reference reduction REDUCTION Bar width reduction also known as Pixel Shaving or BRW Reduction of the nominal bar width dimension to compensate for systematic errors e g dot gain in some printing processes usually applied on film masters or printing plates but also useful to compensate ink bleeding or high toner saturation The given value reduces the width of the modules by a certain amount The BWR unit has to be specified with the argument reductionunit Example for reducing the module width 1096 reduction 10 reductionunit perc reductionunit UNIT The unit of the bar width reduction value see also reduction Possible values perc Percent default mm Millimeters mils Mils 1 Mil 1 1000 Inch inch
79. n Informative Output ASCII Table WWW TEC IT COM 82 84 84 85 86 86 88 89 90 90 90 91 Page 8 of 93 2 Disclaimer The actual version of this product document is available as is TEC IT declines all warranties which go beyond applicable rights The licensee or reader bears all risks that might take place during the use of the system the documentation TEC IT and its contractual partner cannot be penalized for direct and indirect damages or losses this includes non restrictive damages through loss of revenues constriction in the exercise of business loss of business information or any kind of commercial loss which is caused by use or inability to use the product documentation although the possibility of such damage was pointed out by TEC IT We reserve all rights to this document and the information contained therein Reproduction use or disclosure to third parties without express authority is strictly forbidden F r dieses Dokument und den darin dargestellten Gegenstand behalten wir uns alle Rechte vor Vervielfaltigung Bekanntgabe an Dritte oder Verwendung auBerhalb des vereinbarten Zweckes sind nicht gestattet 1998 2008 TEC IT Datenverarbeitung GimbH Wagnerstr 6 A 4400 Austria t 43 0 7252 72720 f 43 0 7252 72720 77 http www tec it com WWW TEC IT COM Page 9 of 93 3 About TBarCode X 3 1 Features 3 1 1 TBarCode X reduces the costs for barcode printing
80. n 0 4 Default The mask is computed automatically time consuming Table 20 Micro QR Code Options 7 5 16 Codablock F Settings All of these parameters are optional and can be used to fine tune the generation of Codablock F Short Long Description CBrows ROWS Sets the number of rows Possible values 2 44 CBcols COLUMNS Sets the number of columns Possible values 4 62 CBrowheight HEIGHT Sets the height of a row Unit of measurement millimeters CBsepheight HEIGHT Sets the height of the row separator Unit of measurement millimeters CBformat FORMAT Sets the format WWW TEC IT COM Page 41 of 93 Possible values 0 Standard default 1 GS1 EAN UCC Table 21 Codablock F Options 7 5 17 Aztec Code Settings All of these parameters are optional and can be used to fine tune the generation of Aztec Code Short Long Description ACsize SIZE Sets the Aztec Code symbol size The possible values can be looked up in Section C 10 1 Symbol Sizes ACbinary Barcode content is encoded in the binary mode ACecl LEVEL Sets the error correction level in percent Possible values 0 59 ACrunes Switch into Runes mode Aztec Runes are small distinct machine readable marks which are able to encode values from 0 255 8 bits ACformat FORMAT Sets the Aztec C
81. n be inserted into a PostScript PCL stream or file embed off creates a stand alone PostScript PCL file pos POS Sets the positioning mode to relative or absolute coordinates Possible values abs default for PostScript rel default for PCL Table 13 Filtering Options WWW TEC IT COM Page 38 of 93 7 5 9 PDF417 Settings All of these parameters are optional and can be used to fine tune the generation of PDF417 Short Long Description PDFrows ROWS Sets the number of rows Possible values 3 90 Example PDFrows 10 PDFcols COLUMNS Sets the number of columns Possible values 1 30 Example PDFcols 9 PDFratio RATIO Sets the row columns ratio Example PDFratio 3 1 PDFauto Automatically chooses the row column ratio PDFrowheight HEIGHT Sets the height of a row Units of measurement millimeters Examples PDFrowheight 5 0 PDFecl LEVEL Sets the error correction level Possible values B ul B Example PDFecl 0 PDFmode MODE Sets the PDF417 encoding mode The PDF417 modes can be looked up in Section C 3 1 Encoding Mode Table 14 PDF417 Options 7 5 10 Micro PDF417 Settings All of these parameters are optional and can be used to fine tune the generation of Micro PDF417 Short Long Description MPDFversion VERSION Sets the Micr
82. n your system gt most cases you need to install the GCC runtime libraries or a specific version of them If the correct 1ibgcc package has been already installed you may have to adapt the library path see A 2 Shared Library Path A 1 1 List Dynamic Dependencies If some dependencies are not installed or not found TBarCode X can function incorrectly or fail In this situation you must check that all the shared libraries are installed and can be found The following commands list the dynamic dependencies of executable files and libraries Use them for trouble shooting failed dependencies ldd Solaris and Linux systems chatr on HP UX systems dump H AIX systems Here are some examples 0 Commands Samples Linux 1 The output of these commands lists the dynamic dependencies and indicates which Solaris libraries cannot be found ldd usr local share tbarcodel0 tbarcode ldd usr local lib libtbarcode HP UX chatr The output of these commands shows the shared library path and whether the environment variable is enabled or disabled chatr usr local share tbarcodel0 tbarcode chatr usr local lib libtbarcode AIX dump H The output of this command lists the dynamic dependencies and indicates which libraries cannot be found dump H usr local share tbarcodel0 tbarcode 1 2 GCC Runtime Libraries Depending on the downloaded TBarCode X binary and target platfor
83. ncoder Code 39 Remove leading trailing asterisks from the bar code data start stop characters are insert automatically by the encoder 951 128 Remove leading trailing FNC1 characters from the bar code data at first data position is added automatically by the encoder Possible values on off Example autocorrect ON e translation STATE Enables or disables the translation of escape sequences see also Escape Sequences in the Barcode Reference Possible values Example ETE translation ON trimwhitespaces Removes all whitespaces spaces tabs etc from begin and the end of the barcode data removechars CHARS Removes the specified characters from the input data Can be used to remove spaces or dashes from article numbers Example removechars formatstring FORMAT Sets the format string The format string syntax can be looked up in Section C 12 Formatting Barcode Data Example formatstring A B amp compress ALGORITHM Compresses the data by using a compression algorithm Possible algorithms NONE default DEFLATE GZIP ZLIB Compression may be applied when a large amount of data has to be encoded as barcodes Compression should only be used in closed applications only with barcode symbologies that support binary data e g Data Matrix PDF417 MicroPDF QR Code etc After reading the barcode the data has
84. nd white PNG image gs dNOPAUSE dBATCH sDEVICE pngmono 72 g225x143 sOutputFile barcode png barcode eps WWW TEC IT COM Page 58 of 93 The parameter 9225x143 sets the size of the image The size bounding box can be determined with gs dBATCH sDEVICE bbox barcode eps 9 3 Web Applications PHP You can use TBarCode X in dynamic web pages on your Linux server To create a barcode on demand in your PHP script you can execute tbarcode in a shell The syntax for creating bitmap barcodes JPG GIF PNG etc is described in the previous section 9 3 1 Display a Barcode in a Browser Here are two examples how to generate barcodes and display them in a web application 9 3 1 1 Example 1 Create the barcode image file with PHP mypage php Stmp be fille random file pu barcode parameters Stmp bel fille Reference the file in your html output img src imgpath tmp bc file ith this approach you periodically have to clean up the temporary created image files otherwise your hard drive will be flooded with barcode image files 9 3 1 2 Example 2 In your html image tag you reference a php script which creates a barcode image data stream mypage php lt img src BarcodeStream php data 1234 gt The BarcodeStream script creates a bar code image based upon the GET parameters BarcodeStream php header Co
85. nly in conjunction with escape sequences For Japanese Postal codes the Address B data fields can be automatically compressed i e Japanese symbols are converted into ASCII symbols Table 46 Format Placeholders Examples Input data Barcode type Format string Data used for Notes encoding 123 Irrelevant 123 123 Irrelevant 5 amp 5123 123 Irrelevant amp 6 1236 123 Irrelevant q w e qiw2e3 123 Irrelevant q amp 1q23 123 Irrelevant amp 123c 123 Irrelevant amp 123 This format string be used for TBarCode 6 or earlier TBarCode 8 always returns 0 in this case 12345 Irrelevant THHHENE 1234c5 When using Modulo 10 for check digit calculation c will be Mod 10 12345 5 for TBarCode 6 or earlier Mod 10 1234 0 for TBarCode 7 or later Hello Code 128 A amp Hello Hello Code 128 A B amp Hello WWW TEC IT COM Page 85 of 93 Hello4711 Code 128 A B amp Hello4711 Hello4711 Code 128 amp Hello4711 Table 47 Format Examples red characters gray characters green characters represented in subset A represented in subset B represented in subset C represents the place of the check digit C 13 PCL Font Numbers Use these font numbers in combination with the parameter ont Number Typeface Family PCL Number Albertus 4362 Antique O
86. nstallation these permissions should be set properly You can ensure this by checking the directory entries of usr local share tbarcodel0 using the command 11 usr local share tbarcodelO Depending on the operation mode of TBarCode X with our without daemon process the following files are displayed by the Is command 5 6 1 with Daemon The output should look like this userxy SuSE93 gt 11 usr local share tbarcodelO total 496 re UE SUIS SE Wits 26 Te 3G rw r r rwsr xr x WWW TEC IT COM Page 20 of 93 iis 2005 11 09 09 06 cillceeujos pel s root root 1648 2005 11 09 090206 fillcercups ps sh JEGXOXE 1464 2005 11 09 09 06 fillterlprng fwd sh JEGXOXE 1260005 1064 2005 11 09 09 06 filterlprng sh LO 1096 05H OS OOIOGNIE ensem root root 1192 2005 12 20 5 5 root root 261588 2005 11 09 09 06 tbarcode HNP PP PpDPBpmBdDA S rwxr r 1 root root 216976 2005 11 09 09 06 tbarcoded jl Koo 2547 2005 11 09 09 06 tbarcode conf 1 xxu goog 1702 2005211208 09 06 toarcoded cont Dates and file sizes may vary the important information is marked bold The file toarcode needs execute rights and the user id SUID bit needs to be set The file tbarcoded needs to have execute rights for its owner Missing attributes may be set by root only with chmod tbarcode chmod u x tbarcoded 5 6 2 TBarCode X withou
87. ntax of Version 1 x WWW TEC IT COM Page 88 of 93 Appendix E TBarCode Daemon The TBarCode Daemon is a background server process that performs the barcode generation The TBarCode Daemon is an optional component It is not available and not required for certain distributions of TBarCode X The daemon is usually located in usr local share tbarcodel0 tbarcoded In general there is no need to manually start or stop the TBarCode Daemon It is started automatically It is only necessary to restart the daemon when the configuration files or license files have changed E 1 Usage You need to have root privileges to run the TBarCode Daemon usr local share tbarcodel0 tbarcoded options Examples usr local share tbarcodel0 tbarcoded usr local share tbarcodel0 tbarcoded help usr local share tbarcodel0 tbarcoded stop E 2 Options E 2 1 General Options Short Long Description inifile FILE Sets the path and name of the configuration file Default is usr local share tbarcodel0 tbarcoded conf Example inifile home userXYZ myTbarcoded conf license DIRECTORY Sets the path where the license is located Default is usr local share tbarcodelO Example license etc The name of the license file is always 1icense ini Table 50 TBarCode Daemon General Options E 2 2 Daemon and IPC Options Short Long Description r restart Restart
88. ntent type image JPEG create the bar code image file Sunique filename dirname 5 TRANSLATED NN uniqid rand jpg shell execute tbarcode data Sunique filename read the whole file and send it to the browser fp fopen Sunique filename rb pass through as binary data stream JPG image format fpassthru fp flush Ge delete file immediately unlink Sunique filename jpg make sure that you don t add unwanted white space outside of the lt gt tags Instead of the she11 execute function you could also use exec or system WWW TEC IT COM Page 59 of 93 9 3 2 Hints for using shell execute If you re not getting any output from echo shellexec prog for instance at least try prog before bothering with the full path Add 2 amp 1 to the end of your shell command to have STDERR returned as well as STDOUT shell return shell exec shell command 2 gt 61 Note You can t used shell exec when safemode on it s disabled instead use exec and copy the needed program into the nonexec directory by default set in php ini When running sub processes via shell exec and maybe others from Apache mod php4 Apache s environment variables don t seem to be passed on to the sub process environment unless you specifically force them by using putenv something like this remaddr getenv REMOTE ADDR putenv REMOTE ADDR r
89. o PDF417 version symbol size The possible values can be looked up in Section C 4 1 Version Symbol Sizes MPDFmode MODE Sets the Micro PDF417 mode The Micro PDF417 modes can be looked up in Section C 4 2 Mode Table 15 Micro PDF417 Options 7 5 11 Macro PDF417 Settings All of these parameters are optional and can be used to fine tune the generation of Macro PDF417 Short Long Description PDFindex NDEX Sets the segment index PDFid D Sets the file ID PDFlast Last segment WWW TEC IT COM Page 39 of 93 PDFfile NAME Sets the file name PDFcount COUNT Sets the segment count PDFtime TIMESTAMP Sets timestamp PDFsender SENDER Sets the sender PDFaddr ADDRESSEE Sets the addressee PDFsize SIZE Sets the file size PDFchecksum SUM Sets the checksum Table 16 Macro PDF417 Options 7 5 12 Data Matrix Settings All of these parameters are optional and can be used to fine tune the generation of Data Matrix Short Long Description DMsize SIZE Sets the Data Matrix size The Data Matrix sizes can be looked up in Section C 5 1 Symbol Sizes DMformat FORMAT Sets the Data Matrix format The Data Matrix formats can be looked up in Section C 5 2 Format DMbinary Barcode content is encoded in the binary mode DMrect Draws Data Matrix
90. o create the barcodes Programmers can use the library to add barcode generation capabilities to their own applications By default all required library files and header files for are automatically installed The complete documentation of the TBarCode X Library API is available online http www tec it com Download TBarCode X gt develop your own applications with the TBarCode X Library you need to acquire a deve loper license from TEC IT Just visit our website http www tec it com or contact us to find out more 4 1 2 1 TBarCode X Library Java Interface For LibTBarCode we provide a Java Interface This interface uses JNI and consists of Java Classes and a JNI interface library more information see TBarCode X Developer Manual The Java Interface is available on request please contact our support and provide information about your target platform Please note TIF is only supported on Linux systems WWW TEC IT COM Page 14 of 93 4 1 3 TBarCode X Daemon The TBarCode X Daemon is a background server process which performs barcode calculations If the TBarCode X Daemon is installed then the TBarCode X command line application is only a light weight frontend for the daemon The separation of the barcode generation process into a light weight frontend and a server process improves the overall performance The daemon can be found at usr local share tbarcodel0 tbarcoded or under Mac OS at
91. o nobanner output pcl lp d tbcprintremote vlformat o nobanner output vl pcl 8 5 2 Print BarcodeFilter Test File lp d PSPrinterName usr local share tbarcodel0 samples testfile ps 8 5 2 4 Background Information Solaris Printing http developers sun com solaris articles basicprinting html WWW TEC IT COM Page 55 of 93 8 6 TBarCode X with UNISPOOL Holland House B V Create a script home unispool tbc filter script The script should have the following content cat 6 tbarcode filter home unispool cexpand In UNISPOOL use the filter by calling home unispool tbc filter script 8 7 SAP R 3 and mySAP Integration TBarCode X can be used with SAP systems to generate bar codes during printing Please request more information about the required configuration steps under the following email addresses sap tec it com support tec it com WWW TEC IT COM Page 56 of 93 9 Generating Bitmap Images There are currently two ways to create barcodes as raster images Direct Bitmap Generation TBarCode X supports built in bitmap output but the human readable text will not be drawn In addition certain barcode symbologies such as the MAXICODE are not support for direct bitmap output Indirect Bitmap Generation via PostScript Create PostScript output and convert the PostScript output to the desired raster image format This method requires a bit more work but there are more possibilities All barc
92. ode for example Data Matrix PDF417 etc structapp TBARCODE creates a proprietary structured append mode This structured append mode can only be decoded by using the TBarCode Scanner solution It is not supported by standard scanner devices Table 25 Multiple Barcodes Options 7 5 21 Deprecated Barcode Settings The following options are deprecated They are still supported in the current release though it is not guaranteed that they will be supported in future releases Deprecated Option New Option Replacement guardline WIDTH bearerwidth WIDTH and bearertype TYPE barsimmdefaults defaultset 1 Table 26 Deprecated Options WWW TEC IT COM Page 44 of 93 7 6 TBarCode X Configuration Files Each TBarCode X executable has a configuration file to define global settings Executable Name of Configuration File tbarcode tbarcode conf tbarcoded tbarcoded conf Table 27 TBarCode X Configuration Files Each time tbarcode or tbarcoded is started the application reads the configuration file gt tbarcoded is the TBarCode X Daemon which is the background server process of TBarCode X This file is not available in all releases of TBarCode X gt Only system administrators can edit the TBarCode X configuration files 7 61 Path of Configuration Files TBarCode X searches in the following directories for a suitable configuration files tbar
93. ode symbologies and text output are supported 9 1 Direct Method Create Bitmap Images with TBarCode X Here is an example how a bitmap barcode can be created tbarcode format IMAGE imageformat PNG output barcode png barcode 20 data 1234 scopbimadwickN Or using the short form for the parameters tbarcode fIMAGE iPNG obarcode png b20 d 1234 0 This will create a barcode where one module thinnest bar is exactly one pixel The parameter optimalwidth O ensures that the modules are exactly an integer multiple of pixels no fractional part Without this parameter the barcode might not be readable TBarCode X automatically chooses an appropriate width and height for the barcode If the resulting size of the barcode does not fit your needs you can specify the width and height yourself The parameters width and height specify the size of the barcode in millimeters The actual size of the bitmap in pixels depends on the image resolution which is set If nothing is specified a resolution of 72 dpi dots per inch is assumed A custom resolution can be set with the parameter dpi For example the parameters width 50 height 20 dpi 600 will create a barcode which is 1181 x 472 pixels large If this barcode is printed at a resolution of 600 dpi the resulting barcode will be 50 x 20 mm If you specify the parameters width and optimalwidth the same time then TBarCode X will to the following TBarCode X
94. ode format The possible values can be looked up in Section C 10 2 Format ACspec SPECIFIER Sets the format specifier Is considered only when ACformat is set to 2 Industry format ACappend Enables the structured append mode ACsum SUM Sets the total number of the structured append symbols Possible values We 2 ACindex INDEX Sets the index of the structured append symbol Possible values ACmessage D Sets the structured append message id Table 22 Aztec Code Options 7 5 18 RSS Expanded Stacked Settings This parameter is optional and can be used to fine tune the generation of RSS Expanded Stacked Short Long Description RSSseg SEGMENTS Sets the number of segments per row Possible values 2 22 Table 23 RSS Expanded Stacked Options 7 5 19 Composite Barcode Settings This parameter is optional and can be used to fine tune the generation of Composite Barcodes Short Long Description CCtype TYPE Sets the type of composite component Possible values none auto A B C Table 24 Composite Barcode Options WWW TEC IT COM Page 42 of 93 7 5 20 Multiple Barcodes Creating multiple barcodes is a new feature in TBarCode X 9 0 This feature allows the user to encode data into multiple barcodes instead of a single barcode In this way large amounts
95. or PostScript format instead into the print job or document The samples below give you a quick start for using TBarCode X in filter mode For more detailed instructions read ahead in section 7 3 and 7 5 7 2 2 Insert a Barcode into a PostScript Document Place the following sequence into your document e g infile ps to create a barcode Text before Barcode tbcs 5 b71 m0 508 dMyBarcodeData tbce Text after Barcode Barcode sequence parameters Parameter Description tbcs Begin of barcode control sequence fPS Format of output is PostScript default b71 Generate barcode type Data Matrix 71 see C 1 for more types m0 508 Set the module width X dimension to 0 508 mm dMyBarcodeData d marks the begin of barcode data all characters following will be encoded tbce End of barcode sequence Then call tbarcode with the following parameters tbarcode filter stream PS lt infile ps gt outfile ps Now the out file ps will contain the original file plus the drawing commands for the barcode gt For automatic barcode generation by your spool system see chapter 8 WWW TEC IT COM Page 24 of 93 7 2 33 Insert a Barcode into a PCL Document Place the following sequence into your document e g infile pcl to create a barcode Text before Barcode b71 m0 508 dMyBarcodeData tbce rest after Barcode Barcode sequence paramete
96. ossible values on off 5 Not all barcode scanners support Structured Append WWW TEC IT COM Page 43 of 93 rows HOWS Sets the number of barcode rows For example to draw 3 rows with barcodes rows 3 columns COLUMNS Sets the number of barcode columns For example to draw 4 columns with barcodes columns 4 hdist DISTANCE Sets a minimal horizontal distance between barcodes Unit of measurement millimeters Example hdist 5 vdist DISTANCE Sets a minimal vertical distance between barcodes Unit of measurement millimeters vdist 5 datalimit L MIT Sets the maximal amount of data data bytes that is encoded in a single barcode Example datalimit 1000 dynamicsize MODE Allows the barcode to grow in horizontal or vertical direction Possible values none default horizontal The barcode can grow in horizontal direction vertical The barcode grow in vertical direction Example dynamicsize VERTICAL structapp MODE Sets the structured append mode that is used for multiple barcodes Possible values No structured append mode is used standard The barcodes own structured append mode is used tbarcode A proprietary structured append mode is used Important structapp STANDARD can only be used with barcode symbologies that provide a structured append m
97. p p tbarcode Wei win Siewiles do call barcode engine add S for SAP output usr local share tbarcodel0 tbarcode filter lt Sprint file gt PROCFILE replace original file with process file my SPROCEILE Sprint fille done 1 Next we insert a call to tbarcode filter at two places each time before REALMODEL fi Modified by TEC IT to perform the TBarCode filter ilter 1 SREALMODEL job user title copy options 11 gt debugf exit 0 while do Modified by TEC IT to perform the TBarCode filter on 27th Oct 2009 barcode Miter 1 Save the stderr messages in a temporary log file and discard stdout which is the peripheral output SREALMODEL job Suser title copy Soptions files SHPNPF 2 gt gt 5106 gt dev null Now the filter is called before the spool job is sent to the printer with the REALMODEL command 8 4 6 Printing Script HP UX 11 11 Edit the script and insert the bold lines before the Realmodel command WWW TEC IT COM Page 53 of 93 while do FE AE HE TE FE TE AE HE FE FE TE AE HE FE FE TE AE HE FE FE FE FE FE FE TE TE AE FE FE FE TE E FE FE TE TE E FE FE TE FE HE FE FE TE FE HE FE FE TE E HE FE E E E E H START TECIT generate a temp filename PROCFILE mktemp d tmp p tbarcode call barcode engine S for SAP output usr local share tbarcodel0 tbarcode filter 1 gt SPROCFILE re
98. place original file with process file mv SPROCFILE 1 END TECIT FE AE HE FE FE TE AE HE FE FE TE AE FE FE FE FE AE FE FE FE FE HE FE FE FE FE HE FE FE TE FE HE FE FE TE AE HE FE FE TE E FE FE TE TE EE FE TE TE E E E E E Save the stderr messages a temporary llog fille and discard stdout which is the peripheral output SREALMODEL job Suser title Soptions files SHPNPF 2 gt gt 5106 gt a dev null 8 4 7 Other Printing Scripts Please contact support tec it com if you need help with your printing script 8 4 8 Make a Test Print 1p d Printer usr local share tbarcodel0 samples testfile ps On a PostScript printer the printout should contain several barcodes 8 5 Solaris Printing System This section describes how to setup TBarCode X as a filter in the standard 1p spooler coming with Solaris Please read section G 1 Unix Printing HP UX and Solaris for background information First you should perform a basic test to see if the filter works on your system These tests are described in section 6 1 2 Run TBarCode as Filter 8 5 1 Spool System Integration Solaris spool filter integration can be done through modifying the netstandard interface file or by registering an pfilter as shown below TBarCode X for Solaris contains two filter definition files os With these files it is possible to include TBarCode filter
99. plemented Escape Sequences Escape Description Valid for Barcode Symbology sequence a Bell alert All b Backspace f Form feed n New Line F Carriage Return Horizontal Tab v Vertical Tab The backslash V itself 0 Zero Byte if subsequent char is non numeric Available TBarCode 10 0000 ASCII character in octal notation Up to 3 octal digits 0 7 First digit is always zero ASCII character in decimal notation dad up to decimal digits 0 9 First digit must not be zero xhh For encoding bytes or ASCll characters hexadecimal notation hh hexadecimal digits 0 F Crrggbb Color selection See Pharmacode Ce Reset the color to default FNC1 Function Number Character 1 used as field EAN 128 UCC 128 Codablock F separator MicroPDF417 a special FNC1 codeword is inserted when using emulation mode for EAN 128 or Code 128 Data Matrix a special FNC1 codeword is inserted F Inserts Gs Group Separator or ASCII 1DHex PDF417 MaxiCode and in QR Code Don t encode the x1d directly QR Code When using format UCC EAN GS1 Gs is inserted in Byte Mode a is inserted in alphanumeric mode Ennnnnn Extended Channel Interpretation ECI MaxiCode Data Matrix QR Code PDF417 nnnnnn 6 digit ECI number with leading zeros MicroPDF417 Aztec Code Used for defining the character set code page for the subsequent encoded dat
100. rameters C 1 Barcode Symbologies These are the barcode symbologies that are currently supported by TBarCode X The barcode symbology can be set with the parameter barcode D For example barcode 1 sets the barcode type Code 11 For more detailed information on supported barcode types please refer to the Barcode Reference which is available as separate document The Barcode Reference can be downloaded from www tec it com Column descriptions ID Barcode Name Print Ratio Ratio Format String Internal barcode ID If not supported in the current version marked with Name of the barcode symbology Standard Print Ratio of the barcode Predefined corresponding to the barcode symbology Format of the Print Ratio Helpful to understand the definition of the Print Ratio xB 1B 2B width of the single Bars xS 15 25 width of the single Spaces also called gaps Check Digit Enumeration of the pre selected check digit method for each barcode symbology ID Barcode Name Print Ratio Ratio Format String Default Ratio Hint Check Digit 0 Not a valid type 01 1 Code 11 1 2 24 3 48 1 2 24 1 2 3 15 25 eCDNone 2 Code 2 of 5 Standard 1 3 4 5 1 3 1B 2B 3B 18 28 eCDNone 3 Interleaved 2 of 5 Standard 1 3 1 3 1 2 15 25 eCDNone 4 Code 2 of 5 IATA 1 3 1 1 2 15 eCDNone 5 Code 2 of 5 Matrix 1 3
101. rintlocall I tbarcode ps T unknown usr bin enable tbcprintlocall usr sbin accept tbcprintlocall lpadmin p tbcprintlocal2 v dev cua b D TBarCode Printer on serial port lpadmin p tbcprintlocal2 m lp printer model n lt path ppdfile gt lpadmin p tbcprintlocal2 I tbarcode ps T unknown usr bin enable tbcprintlocal2 usr sbin accept tbcprintlocal2 Example network printer PCL lpadmin p tbcprintremote v dev null D TBarCode network Printer lpadmin p tbcprintremote o dest lt printer ip gt lt printer port gt o protocol tcp o timeout 5 lpadmin p tbcprintremote m lp printer model n lt path ppdfile gt lpadmin p tbcprintremote I tbarcode pcl T unknown usr bin enable tbcprintremote usr sbin accept tbcprintremote Real example PostScript lpadmin p tecitdevel v dev null D TBarCode network Printer lpadmin p tecitdevel o dest 172 16 100 104 9100 o protocol tcp o timeout 5 lpadmin p tecitdevel I tbarcode ps T unknown usr bin enable tecitdevel usr sbin accept tecitdevel 8 5 1 3 Print To Filtered Printer Print the file report ps to the local Postscript printer ebcprintlocalil nobanner report ps Print the file report vl ps contains the TBarCodeX commands in the old V1 format to the local PostScript printer lp theprintlocall y viformat nobanner report 1 Print PCL output to the network PCL printer lp d tbcprintremote
102. rs Parameter Description tbcs Begin of barcode control sequence fPCL Format of output is PCL b71 Generate barcode type Data Matrix 71 see C 1 for more types m0 508 Set the module width X dimension to 0 508 mm dMyBarcodeData d marks the begin of barcode data all characters following will be encoded tbce End of barcode sequence Then call tbarcode with the following parameters tbarcode filter stream PCL infile pcl outfile pcl Now the out ile pcl will contain the original file plus the PCL 5 HPGL drawing commands for the barcode gt For automatic barcode generation by your spool system see chapter 8 7 3 TBarCode X Command Line Tool All features of TBarCode X are available through a single command tbarcode The executable tbarcode is usually located in usr local bin or usr bin If the path to the tbarcode executable is not set in the environment variable PATH you will need to specify the full path to start it For example usr local bin tbarcode 7 31 Usage tbarcode options barcodesettings gt The options are used to specify general functionality of the TBarCode X command line application see section 7 4 Options gt The barcodesettings are used to adjust barcode parameters see section 7 5 Barcode Settings The parameters may be specified in Short style POSIX style for example tbarcode obarcode eps b20
103. s as administrator 1 Opena new console terminal 2 Type the command rpm e tbarcode 3 Uninstallation is complete Alternatively you can use any package manager that comes with your Linux distribution 5 3 Install TBarCode X from a TAR GZ Package TAR GZ packages files with the extension tar gz or tgz If you have received TBarCode X as a TAR GZ package then follow the instructions in this section 5 3 1 Prerequisites Please make sure that the required GCC runtime see A 1 2 and Iconv see A 1 3 libraries are installed on the target system WWW TEC IT COM Page 17 of 93 If the usr local directory is missing on your system follow the steps in section 5 3 3 5 3 1 1 Prerequisites for GdZipis a free utility you can download from the AIX Toolbox for Linux Applications http www 03 ibm com servers aix products aixos linux ForTBarCode X V9 Please update your bos iconv ucs file sets see A 1 3 5 3 2 Installation procedure The following steps need to be performed as administrator user root 1 Opena new console terminal 2 Typethe commands tar xzf SetupTBarCode tar gz cd SetupTBarCode install sh of your package might be different Replace the above file name with the file you have downloaded or received for your operating system For command syntax on see section 5 3 2 1 Installation from tar gz files on AIX 3 Register the TBarCode X libraries s
104. s addon _ 28 Flattermarken 1 1 18 15 eCDNone 29 GS1 DataBar RSS 14 1 2 3 4 5 6 7 8 9 1 1B 2B 3B 4B 5B 6B 7B 8B 9B eCDNone 2 3 4 5 6 7 8 9 15 25 35 45 55 65 75 85 95 30 951 DataBar Limited RSS 1 2 3 4 5 6 7 8 9 1 1B 2B 3B 4B 5B 6B 7B 8B 9B eCDNone Limited 2 3 4 5 6 7 8 9 18 28 38 48 58 68 78 88 98 31 GS1 DataBar Expanded RSS 1 2 3 4 5 6 7 8 9 1 1B 2B 3B 4B 5B 6B 7B 8B 9B Expanded 2 3 4 5 6 7 8 9 18 28 38 48 58 68 78 88 98 32 Telepen Alpha 1 3 1 3 1 2 15 25 eCDNone 33 UCC128 EAN128 1 2 3 4 1 2 3 4 1 2 3 4 15 25 35 45 eCDCode128 34 UPCA 1 2 3 4 1 2 3 4 1B 2B 3B 4B 18 28 38 48 eCDUPCA 35 UPC A 2 digit add on 1 2 3 4 1 2 3 4 1 2 3 4 15 25 35 45 eCDUPCA 36 UPC A 5 digit add on 1 2 3 4 1 2 3 4 1 2 3 4 15 25 35 45 eCDUPCA 37 UPCE 1 2 3 4 1 2 3 4 1B 2B 3B 4B 18 28 38 48 eCDUPCE 38 UPC E 2 digit add on 1 2 3 4 1 2 3 4 1 2 3 4 15 25 35 45 eCDUPCE 39 UPC E 5 digit add on 1 2 3 4 1 2 3 4 1 2 3 4 15 25 35 45 eCDUPCE 40 USPS PostNet 5 ZIP 5 digits 1 1 1 15 eCDPostNet 41 USPS PostNet 6 ZIP 5 digits 1 1 1B 1S eCDPostNet check digit 42 USPS PostNet 9 ZIP 4 1 1 1 15 eCDNone 43 USPS PostNet 10 ZIP 4 1 1 1B 1S eCDPostNet check digit 44 23 PostNet 11 ZIP 4 1 1 1B 1S eCDPostNet 45 USPS PostNet 12 ZIP 4 11 1B 1S eCDPostNet 2 check digit 46 Plessey Code 1 2 1 2 1 2 15 25 eCDPlessey 47 MSI Plessey Code 1 2 1 2 1 2 15 25 eCDMSI1 48 SS
105. s case you have to extend your iconv installation as follows 3 options Install the missing conversion tables from your system installation base Update your iconv installation e g by downloading a suitable binary Usethe iconv library provided by TEC IT if available for your platform see also below WWW TEC IT COM Page 64 of 93 gt If you don t need the specified 2D codes you can omit the update of the Iconv library A 1 3 1 for Update your iconv packages install missing Codepages as shown in the following example root lparl19mll6ed_pub mnt AIX53Base lpp installp ppc gt lslpp 1 bos iconv ucs pc Fileset Level State Description Path usr lib objrepos 5 3 0 0 COMMITTED Unicode Converters for Additional PC Code Sets root8lparl9mll6ed pub mnt AIX53Base lpp installp ppc gt lslpp 1 bos iconv ucs com Fileset Level State Description Path usr lib objrepos bos LEON VES cO 5 3 9 0 COMMITTED Unicode Base Converters for AIX Code Sets Fonts In a special case the math library may also be required package bos adt libm 1 3 2 for HP UX On HP UX there may be problems with PDF417 bar code generation due to missing code page s in the pre installed HP UX iconv library UCS 4BE to CP437 conversion not supported HPUX 11 23 CP1252 to CP437 conversion not supported on HPUX 11 23 Solution TEC IT provides the following pre built ibiconv binaries with full cod
106. s daemon s stop Stops daemon kill Kills daemon check Checks state of daemon cleanup Cleans up resources id ID Sets identification number to ID memory SIZE Changes the size of the memory reserved for barcode creation TBarCode Daemon uses a fixed memory block for the inter process communi cation to exchange barcodes with the TBarCode Command When creating only small barcodes linear barcodes with little data the memory consumption can be reduced by setting this value WWW TEC IT COM Page 89 of 93 The memory block needs to be big enough to hold a complete barcode the size of the resulting barcode file The TBarCode Command and the TBarCode Daemon have to be called with the same memory settings So it is best to set an equal memory size in the configuration files tbarcode conf and tbarcoded conf If unsure what to set then do not edit this parameter manually Example memory 65000 Table 51 TBarCode Daemon Daemon and IPC Options E 3 Error Message and Debug Options Short Long Description errorfile FILE Saves all messages in the given file This should only be used for debugging and not in the productive system Example errorfile tmp tbarcoded_errors log nosyslog Do not log messages using syslog nostderr Do not log messages to stderr trace LEVEL Sets the trace level to a certain value T
107. t SHLIB PATH LD LIBRARY PATH You must include the paths also in etc dld sl conf 2 3 2 Not finding libstdc Install the gcc lib version which was used for building the binary see A 1 2 3 Add the gcc lib path to SHLIB PATH or LD LIBRARY PATH fthe gcc lib path is different from the static search path stored the binary enable dynamic lookup with the following command Use a dynamic search path for a specific library if listed as static chatr 1 opt gcc lib libstdct sl 5 tbarcode WWW TEC IT COM Page 68 of 93 2 4 AIX the system variable LIBPATH is used to set the runtime linker search path On demand add the installation path of the TBarCode X libraries libtbarcode as follows export LIBPATH usr local lib LIBPATH If the gcc runtime libraries are not found export the LIBPATH environment variable to the correct GCC library version like so export LIBPATH opt freeware lib gcc lib powerpc ibm aix5 3 0 0 3 3 2 S9LIBPATH 2 4 1 Lib Conflicts How to avoid conflicts between different versions of gcc libraries installed at the same time You could put the gcc libraries required by TBarCode into a sub folder of tbarcode and adjust the library path before calling tbarcode like so export LIBPATH usr local share tbarcodel0 gcc lib usr local lib S LIBPATH WWW TEC IT COM Page 69 of 93 Appendix B Troubleshooting FAQ B 1 General Questions B 1 4 C
108. t Daemon If TBarCode X was installed without daemon only check the file permissions for these files userxy SuSE93 gt 11 usr local share tbarcodelO total 496 EUIS WX CIS WX ETRE EL e rw r r lieve skies rwsr xr x rw r r Inc oS OI 2005 11 09 09508 POOL TOOL IGACEZA 00 SS 00 900 90800 9 iter rcups eC Clem OO 1464 2005 11 09 09 06 filterlprng fwd sh iO TONE 2005 11 09 02016 rng shi oot OO T2005 NESCIO CER censes 1261000 194 2005 12 20 1158351 Seinjsiles root root 261588 2005 11 09 09 06 tbarcode root root 090068 barcoden come 5 7 SAP R 3 and SAP ERP Integration TBarCode X can be used with SAP systems to generate bar codes during printing Please request more information about the required configuration steps under the following email addresses sap tec it com support tec it com WWW TEC IT COM Page 21 of 93 6 Testing TBarCode X After installation of TBarCode X it is advisable to test it This can be done from any console terminal 6 4 Run TBarCode X from Command Line 6 1 1 Run the TBarCode Command Open a new console terminal and type the following command tbarcode output barcode eps barcode 20 data abc1234 This should create new PostScript barcode You can view the barcode using a PostScript viewer for example KGhostview or similar
109. t apply TBarCode X filter on a raw queue because such queues will ignore all filters You have to use queues with local filtering using a printer driver ppd 8 2 1 Setting up TBarCode X Spool Filter for PostScript Output The following changes have to be made to the MIME type conversion file of CUPS 1 Open etc cups mime convs Or usr share cups mime mime convs 2 Search for the line with the pstops conversion rule application postscript application vnd cups postscript 66 pstops CUPS 1 0 1 1 Replace pstops with usr local share tbarcodel0 filtercups ps sh The line should look like this application postscript application vnd cups postscript 66 a usr local share tbarcodel0 filtercups ps sh CUPS 1 2 x and later In mime convs change the line as follows application postscript application vnd cups postscript 66 filtercups ps sh Retrieve your CUPS installation directory cups config serverbin It should be usr lib cups In this case filters must be in the filter subdir usr lib cups filter Create a sym link to place the TBarCode X filter script into this sub dir s usr local share tbarcodel0 filtercups ps sh usr lib cups filter filtercups ps sh 3 Restart the printing service etc init d cups restart 8 2 2 Setting up TBarCode X Spool Filter for PCL Output Setting up TBarCode X to filter PCL data streams requires a bit more work because CUPS by default does not filter PCL data We h
110. t is added to the y coordinate of the barcode positions Unit of measurement millimeters Example globalyoffset 5 memory SIZE Changes the size of the memory reserved for barcode creation Only relevant when using the TBarCode X Daemon The daemon uses a fixed memory block for the inter process communication to exchange barcodes with the TBarCode X command line application When creating only small barcodes linear barcodes with la small amount of data the memory consumption can be reduced by setting this value The memory block needs to be big enough to hold a complete barcode the size of the resulting barcode file The TBarCode X command line application and the daemon must use identical memory settings see also the configuration files tbarcode conf and tbarcoded conf If unsure what to set then do not edit this parameter manually Example WWW TEC IT COM Page 26 of 93 memory 65000 Table 1 General Options 7 42 Filter Options These parameters allow you to enable and configure the filter mode of TBarCode X These are optional Short Long Description filter Enables filter mode In filter mode the TBarCode X command line application reads data from stand ard input stdin and writes the results to standard output stdout The input stream is scanned for barcode control sequences Each valid control sequence is replaced with a barcode
111. t to var log messages B 1 8 Why is a horizontal bar drawn across the barcodes You are currently working with the restricted demo version There is either no license file or an invalid license file installed Please refer to Section 10 Licensing or contact us for a valid license file B 2 Questions about Filtering Printing 2 1 CUPS How to tell which filters are in place and maybe failing or missing You can switch on the debug mode in CUPS Open etc cups cupsd conf and add the line LogLevel debug Afterwards restart the CUPS daemon with etc init d cups restart When you now print a job a lot of information is written to the CUPS error log file usually var log cups error log You can read which filters and backends are called in which order For more information about printing problems see www linuxprinting org B 2 2 How filter ASCII files To filter an ASCII text directly the file must be converted into PostScript or PCL format first There are several ASCII to PostScript filters available from the Linux Unix vendors or third party One of the common tools is 2 5 If your printer has no PostScript capability in most cases it can decode PCL Level 5 very common e g LaserJet 4 5 In this case the input to our TBarCode X filter must be PCL Either your application creates PCL input or you find an ASCII to PCL filter to do this One of the filter products is Magicfilter which converts ASCII to PC
112. teps 1 If the usr local directory is missing on your system you need to create the following directories manually mkdir usr local mkdir usr local bin mkdir usr local include mkdir usr local lib mkdir usr local share 2 Give the directories the same rights permissions as usr 5 34 Common Problems Failed dependencies e g GCC runtime libraries missing see A 1 Dependencies Shared library libtbarcode not found see A 2 Shared Library Path 5 3 5 Uninstall TBarCode X If you have installed TBarCode X from a TAR GZ package you can remove it with the following steps as administrator 1 Opena new console terminal 2 Typethe commands Code WL c 10 cd SetupTBarCode uninstall sh 3 Uninstallation is complete 5 4 Install TBarCode X on SCO Operating Systems When you are using a SCO operating system such as SCO OpenServer or SCO UnixWare you receive TBarCode X as a native package image The package usually has the extension and the file has a name like tbarcode 10 0 0 ds The name of your package might be different You will need to substitute the name tbarcode 10 0 0 ds with the exact name of your package in the following instructions The following steps need to be performed as administrator user root 1 Opena new console terminal 2 Type the command pkgadd d home userXYZ tbarcode 10 0 0 ds tbarcode 3 Check the execute p
113. ters are supported With this feature it is possible to Select subsets in Code 128 EAN 128 and UCC 128 even within the code Select the required start stop character for CODABAR Change the position of the check digit ForMaxiCode Set the values of Date Preamble and Service Class Postal and Country code directly in the barcode data in conjunction with special escape sequences The placeholders are as follows Placeholder character Description Stands for the next data character of the input data property Text amp Stands for all remaining data characters in the input data property Text Stands for the next check digit use only if check digits will be computed TBarCode 6 or earlier computes the check digit for all characters in the input data TBarCode 8 or later only uses input data left of the check digit placeholder for check digit computation see examples below Switch to Subset A used in Code 128 EAN 128 UCC 128 Start or stop character A only in CODABAR Switch to Subset B used in Code 128 EAN 128 UCC 128 Start or stop character B only in CODABAR Switch to Subset C used in Code 128 EAN 128 UCC 128 Start or stop character C only in CODABAR Start or stop character D only in CODABAR Only for MaxiCode enables setting the values of Date Preamble Service Class Postal and Country Code directly in the barcode data o
114. the v1format is used because it gt If possible we recommend using the new parameters because they are more flexible and D 1 Overview V1 Format Below you find a short overview about the most important parameters in Version 1 x format For the detailed list see the manual of TBarCode for Linux UNIX Version 1 x Parameters of Version 1 x Description tbcs Marks the beginning of the sequence used with filter tbce Marks the end of the sequence used with filter dContent Content data of barcode must be the last parameter before tbce xPosition Absolute x position in mm see above yPosition Absolute y position in mm see above wWidth Width of barcode in mm e g w50 or w53 12 hHeight Height of barcode in mm ot Orientation Top x y Position sets the upper left corner of the barcode Default in PostScript ob Orientation Bottom x y Position sets the lower left corner of the barcode Default in PCL bBarcodeNo Number of barcode see Barcode Types in the Appendix cMethodNo Number of check digit calculation method rRotation Rotation in degrees 0 90 180 or 270 T on off Show human readable text n Do not print human readable text same as Toff a Print the human readable text above the barcode default is below s on off Translate escape sequences in input data WWW TEC IT COM Page 87 of 93
115. thod Convert PostScript Output to Bitmap The following steps demonstrate an alternative method how to create barcode bitmap images with TBarCode X You will have to use this method if you want to see the barcode text in the bitmap 1 Generate a new barcode tbarcode obarcode eps b20 w80 h50 fontsize 24 O d Demo123 This creates a barcode of with a size of 80 mm x 50 mm The parameter o optimalwidth ensures the that all bars fit into a 72 dpi raster which is the native resolution in PostScript Instead of setting the width of the barcode directly you can also specify the desired module width For example tbarcode obarcode eps b20 modulewidth 0 35278 fontsize 24 O d Demo123 If you set the module width directly make sure that the module width is an integer multiple of 0 35278 mm Because 0 35278 mm matches exactly one dot pixel in PostScript 2 Convert the EPS file to bitmap format Several programs can be used to convert PostScript eps ps images to bitmap format Here are two examples convert is a command line tool that comes with the free ImageMagick software suite http www imagemagick org convert barcode eps barcode png You use the option tantialias disable antialiasing for example convert tantialias barcode eps barcode png gs is a command line tool that comes with Ghostscript which is contained in most Linux distributions The following command creates a black a
116. ting Script HP UX 11 00 or HP UX 11 23 Edit the script and insert the bold lines before the final rlp command Sd dd start TBarCode filter create temp file name INPUT mktemp tmp tbarcode XXXXXX WWW TEC IT COM Page 52 of 93 call tbarcode to insert barcode output to temp file usr local share tbarcodel0 tbarcode filter 1 INPUT overwrite original spool file mv SINPUT 1 end filter usr sbin rlp I requestid BSDC BSDJ BSDT BSDi BSD1 BSD2 03 BSD4 BSDw Result the filter is called before the spool job is sent to the printer with the r1p command 8 4 5 Printing Script HP UX 11 23 with Iconv Preload The iconv library from TEC IT A 1 3 2 must be available in usr local share teciticonv Edit the printing script and insert the following lines First we define a function tbarcode filter for processing the spool file s Add this function code where applicable e g below the remote function remote lpr Modified by TEC IT to call TBarCode filter tbarcode filter export LD PRELOAD usr local share teciticonv lib libiconv sl export LD LIBRARY PATH usr local lib generate a temp filename PROCFILE mktemp d tm
117. tream When format IMAGE is set then the parameter imageformat determines the bitmap format Example creating a barcode as GIF format IMAGE imageformat GIF output Barcode gif imageformat FORMAT Defines the bitmap format which is used for output This parameter is only relevant when format IMAGE is set FORMAT is the extension of the bitmap format Currently supported formats are BMP default GIF JPG PNG and TIF Example format IMAGE imageformat GIF output Barcode gif dpi DPI Sets the resolution of the image Unit of measurement Dots per inch dpi nooverhead Suppresses the PCL or PostScript overhead PCL Reset commands are omitted on begin and at the end of the file PostScript The overhead for encapsulated PostScript EPS is omitted bkmode MODE The background mode of the generated output Possible values transparent background is transparent no background Opaque a white filled rectangle is drawn default Example bkmode transparent colormode MODE The color mode of the output Only relevant for PostScript Possible values CMYK CMYK color space GRAY Grayscale color space RGB RGB color space default Example colormode CMYK pclmode MODE The PCL output mode By default TBarCode X creates PCL Level 5 compatible output PCL Level 5 compatible output includes HP GL 2 dra
118. u can skip ahead to the according section 4 1 The TBarCode X Technology TBarCode X exists in two versions TBarCode X without Daemon TBarCode X with Daemon In the version TBarCode X with Daemon the barcode generation is performed a background server process whereas in the other version the barcode generation is done in a single program The two versions are actually equivalent Same usage Same functionality Same price Same license if you have a license for TBarCode X you can use either of the two versions The only differences are TBarCode X with Daemon is faster TBarCode X with Daemon is perhaps more difficult to configure TBarCode X with Daemon requires inter process communication which is not available on all platforms Here is a schematic overview of the TBarCode X components TBarCode Library Barcode Generation Library TBarCode TBarCode Daemon Command Line Tool Background Server Process Figure 1 TBarCode X with Daemon as Background Server Process TBarCode TBarCode Library Command Line Tool Barcode Generation Library Figure 2 TBarCode X without Daemon WWW TEC IT COM Page 13 of 93 4 1 1 TBarCode X Command Line Tool TBarCode X is shipped with a command line tool which can be called from any console shell to create barcodes It can also be used or invoked by shell scripts and applications 4 1 1 1 Create Barcodes on Command Line TBarCode X supports d
119. ues can be looked up in Section C 7 1 Version Symbol Sizes QRformat FORMAT Sets the QR Code format The possible values can be looked up in Section C 7 2 Format QRind NDICATOR Sets the format application indicator QRecl LEVEL Sets the number of the error correction level The error correction levels can be looked up in Section C 7 3 Error Correction Level Possible values 0 1 default 2 3 QRmask PATTERN Sets the mask pattern 0 7 Default The mask is computed automatically time consuming QRsum SUM Sets the total number of symbol in a symbol chain Possible values 2 16 QRindex NDEX Sets the index of the current symbol in the symbol chain Possible values 1 16 QRparity PARITY Sets the parity byte structured append Table 19 QR Code Options 7 5 15 Micro QR Code Settings All of these parameters are optional and can be used to fine tune the generation of Micro QR Code Short Long Description MQRversion VERSION Sets the Micro QR Code version symbol size The possible values can be looked up in Section C 8 1 Version Symbol Sizes MQRecl LEVEL Sets the number of the error correction level The error correction levels can be looked up in Section C 8 2 Error Correction Level Possible values 0 1 default 2 3 MORmask PATTERN Sets the mask patter
120. ution is to store the XML string in a data file and call the TBarCode X command line application with the parameter datafile File For example tbarcode obarcode ps b71 datafile data xml B 1 4 How to license the product After you have ordered TBarCode X you will receive your license key stored in a file license ini This file must be copied into the installation directory of TBarCode X usually usr local share tbarcode10 See Section 10 Licensing for more information 1 5 How 1 the hostname for buying a single license For a single license we need the hostname of the computer the client where you want to use TBarCode X To get this hostname enter the following command at the command line of the target system hostname WWW TEC IT COM Page 70 of 93 1 6 TBarCode X reports that a shared library is missing When starting TBarCode X you receive the following error message or similar error while loading shared libraries 116 10 50 0 cannot shared object fies No such file or directory Solution Make sure that 1 10 usr local lib or usr 1ib If itis missing reinstall TBarCode X Ifthe problem still remains run the following command Linux only ldconfig usr local lib B 1 7 Where can read syslog messages Syslog messages will be written to the appropriate file specified in etc syslog conf Normally this is se
121. ux By default the libraries of TBarCode X are installed in usr 10ocal lib You can add this library installation path system wide to the runtime linker search path with ldconfig usr local lib Alternatively add the path usr local lib manually to the 14 config etc ld so conf In most cases the usr local 1ib installation path is already listed in the Id config file All you have to do is to rebuild the runtime linker cache with ldconfig Afterwards the TBarCode X libraries should be found A 2 2 1 LD LIBRARY PATH You can use the environment variable LD LIBRARY PATH if you want to extend the library search path inside of a wrapper script Example export LD LIBRARY PATH opt gcc lib 3 NOE SLD LIBRARY PATH This adds opt gcc lib 3 3 2 to the library path but only for the current session 2 2 2 Not Finding libtbarcode on Debian 4 Enter on the command line echo usr local lib etc ld so conf d tbarcode conf ldconfig This adds the installation path to the Id config directory and rebuilds the Id cache WWW TEC IT COM Page 67 of 93 2 3 HPUX In HP UX the search for dynamic libraries is controlled by LD LIBRARY PATH environment variable standard PATH format SHLIB PATH environment variable standard PATH format from etc SHLIB PATH LD PRELOAD environment variable specifies library names full path name RPATH the executable s embedded path embedded at link time b
122. wing operations Some barcode types WWW TEC IT COM Page 32 of 93 such as MAXICODE can only be drawn with HP GL 2 Unfortunately some printers are not fully PCL Level 5 compatible and do not understand HP GL 2 drawing operations Therefore HP GL 2 output can be disabled with this option Possible values CPOL5 PCL5 compatible output PCL5noHPGL PCL5 compatible output without HP GL 2 operations Example pceimode PCL5noHPGL Table 7 Output Format Settings 7 5 3 Barcode Size and Drawing Position Use these parameters to adjust the bar code size and to optimize the bar code quality All of these parameters are optional Short Long Description W width WIDTH Sets the width of the barcode see also sizemode fit Unit of measurement millimeters Examples w25 4 width 55 height HEIGHT Sets the height of the barcode Unit of measurement millimeters Examples height 25 4 m modulewidth WIDTH Sets the module width Unit of measurement millimeters Example modulewidth 0 254 See also sizemode printratio optimalwidth mustfit STATE When activated TBarCode X returns an error if the barcode does not fit into the given bounding rectangle width x height Possible values off default Example mustfit OFF rot ROTATION Sets the rotation of the barcode Un
123. xample usr share printconf util mf_wrapper Change the if parameter to if usr local share tbarcodel0 filterlprng fwd sh The printcap entry of our example would then look like printer galing m1 0 mx 0 sd var spool lpd printer af var spool lpd printer printer acct V lpd_bounce true if usr local share tbarcodel0 filterlprng fwd sh 6 Now open the script usr local share tbarcode1 O filterlprng fwd sh and substitute path of original filter inline 25 with the path and name of the original filter in our example usr share printconf util mf wrapper 7 Restart the print service LPD etc init d lpd restart 8 1 1 Testing the Printer Filter You can now test the TBarCode X printer filter Enter the following line substitute name of printer With the name of your printer lpr P name of printer usr local share tbarcodel0 samples testfile ps This command should print a simple test file Check the printout it should contain several bar codes gt Advice Certain configuration tools might overwrite you changes So backup your configu ration files as soon as you have done all required changes WWW TEC IT COM Page 48 of 93 8 2 CUPS Printing System In CUPS you can install filters for specific mime type conversions TBarCode Filter can be installed to handle mime types application postscript application pcP and application octet stream gt You canno
124. y Id etc did sl conf one library directory per line Program attributes adjustable with the chatr command With the chatr command you can control for a specific executable how the runtime linker evaluates the library path look at the internal attributes of tbarcode chatr tbarcode example output on HP UX 11 11 tharcode shared executable shared library dynamic path search SHLIB PATH enabled embedded path disabled second opt gcc lib shared library list dynamic usr lib libpthread 1 dynamic usr lib libdld 2 static o Sil 9 dynamic eo a gees Maloy LS 22 ill dynamic usr lib libm 2 dynamic Abere Use the following commands to adjust the search path of dependencies enable first to search in SHLIB PATH and then in the embedded path chatr s enable b enable tbarcode add gcc library path to SHLIB PATH export SHLIB PATH your gcc lib path SHLIB PATH add libtbarcode directory to SHLIB PATH export SHLIB PATH usr local lib SHLIB PATH Use a dynamic search path for a specific library if listed as static chate M opc AED Nae oss 2 3 1 SHLIB Path Being Ignored SHLIB Path being ignored for Non root users For looking up shared libraries for setuid applications the dynamic loader uses only the paths listed in etc dld sl conf In other words the security system won t let SUID root applications look a

Download Pdf Manuals

image

Related Search

Related Contents

Migmasterr 280 Pro - ESAB Welding & Cutting Products  Samsung S19A300B User Manual  NMSBuilder User`s Manual v.0.1  Philips Exhaust filter for vacuum cleaner FC6032  EXSL-27  99516 feuillet.FH8  電気錠操作器  *N DICE”  Product Specification Document    

Copyright © All rights reserved.
Failed to retrieve file