.
contact contact


eqpcl.cfg configuration file

 
.
  The eqpcl utility uses a config file to define custom settings.

The config file is a text file with sections marked in square brackets and items and values separated by an equal sign. A hash sign (#) or semicolon (;) denotes a comment. Values can be enclosed in single or double quotes. In this case leading and trailing spaces are preserved. Section names and items are case insensitive.

Unless specified on the command line, the config file is searched in the following locations:

  • The file eqpcl.cfg in the current directory
  • The file .eqpcl in the home directory of the user (HP-UX and Linux)
  • The config directory of the installed Eloquence release

The following configuration sections are recognized:

Also find a copy of the eqpcl.cfg template file below.


Section [config]

This section specifies some global settings for the eqpcl utility.
ps.include = 
This specifies the path to the eqpcl ps include directory. It defaults to the share/eqpcl/ps directory in the Eloquence installation directory (e.g. /opt/eloquence/8.1/share/eqpcl/ps) and typically does not need to be specified.
barcode = 1
A non-zero value enables barcode support. By default, barcode support is disabled. Please refer to the section on barcode support for details.
overlay = 1
A value of 1 or 2 enables overlays from virtual trays. A zero value disables support of overlays. If overlay is set to one (default), the overlay is processed before rendering the page. If overlay is set to two then the overlay is applied when the page is completed. The default value is 1 and typically does not need to be specified.
gs = /usr/bin/gs
The gs option specifies the path to the Ghostscript executable. By default (unless configured), the current PATH is used. On HP-UX and Linux, the default executable is gs.

On Windows, the default executable is gswin32c.exe, but the Ghostscript installation directory is usually not located in the PATH. Therefore, the gs option should be explicitly configured, for example: gs = C:\Program Files\gs\gs9.00\bin\gswin32c.exe

gs.paper.size =
Allows to specify the paper size assumed by Ghostscript. Unless specified Ghostscript assumes a site specific default paper format. This config item should be specified if your PCL documents depend on a specific paper size.
Typical values are "a4" or "letter" (both lower case). When specified, the Ghostscript -sPAPERSIZE option is used. Please refer to the Ghostscript documentation for details (Ghostscript paper sizes).
gs.opt = 
This allows to specify custom Ghostscript command line options. Please refer to the Ghostscript documentation for details.

gs.pdf.opt = -dCompatibilityLevel=1.4 -dPDFSETTINGS=/printer
This allows to specify custom Ghostscript command line options that are used when creating PDF documents (eqpcl -p option).

gs.pdfa.opt = -sColorConversionStrategy=/RGB -sOutputICCProfile=srgb.icc \
              -sProcessColorModel=DeviceRGB -dPDFACompatibilityPolicy=1
This allows to specify custom Ghostscript command line options that are used when creating PDF/A documents (eqpcl -pp option).

gs.print.opt = 
This allows to specify custom Ghostscript command line options that are used when passing document to Ghostscript (eqpcl -g option).

gs.fontpath = 
This allows to specify custom Ghostscript font path. It is equivalent to setting the GS_FONTPATH environment variable. Please refer to the Ghostscript documentation for details.

include = 
This allows to specify a list custom postscript files that are included in the intermediate PostScript result. A comma separated list of files may be specified, a file extension of ".ps" is implied. Postscript files must be located in the location specified by ps.include config item (by default the eqpcl/ps directory).

ps.pdfa_def = 
This may be used to specify a prefix file when creating PDF/A output. If specified, it replaces the builtin PDF/A setup.

Section [default]

This section specifies the PCL defaults.
paper.source = 1
paper.source specifies the default paper tray. If a virtual tray is configured for this paper source then the defined overlay is applied to each page.
paper.size = 26
This specifies the default PCL paper size. The following values are recognized:
  1 = EXECUTIVE
  2 = LETTER
  3 = LEGAL
  6 = LEDGER
 26 = ISO A4
 27 = ISO A3
The default is 26 (A4)
symset = 4U
symset specifies the default symbol set. The following values are recognized.
  8U = HP roman8
  4U = HP roman9 (same as Roman8 with EUR sign)
  9U = CP1252
  0N = ISO latin1 (subset of cp1252)
The default is 8U
eolterm = 0
eolterm specifies the default for the PCL CR/LF handling. The following values are recognized:
 0 - CR = CR, LF = LF, FF = FF
 1 - CR = CR+LF, LF = LF, FF = FF
 2 - CR = CR, LF = CR+LF, FF = CR+FF
 3 - CR = CR+LF, LF = CR+LF, FF = CR+FF
The default is 0. A value of 2 would be used to print UNIX text files.

Section [tfN]

The tf sections are used to specify a mapping of PCL typefaces to PostScript fonts. A separate section is defined for each typeface.
[tfN]
width = font height/width ratio (percent)
#b#s = font name
  • The section name [tfN] identfies the PCL typeface. It consists of the literal "tf" and a numeric value N that specifies the PCL typeface id. For example, [tf4102] specifies the PCL typeface 4102 (LetterGothic).

  • width specifies the font width/hight ratio (in percent). This is used to scale monotype fonts. The default is 60, indicating the width is 60% of the height.

  • The other entries are used to map stroke and style values to a specific Postscript font name.
    #b#s = font name
    Where # specifies the stroke and style value and font name specifies the name of the PostScript font.
Please note the default font replacement mechanism applies if a font typeface is not mapped (including the exact stroke and style values).

The example below maps the PCL 4102 typeface id to the LetterGothic PostScript font.

[tf4102]
width = 54
0b0s = LetterGothic
1b0s = LetterGothic
3b0s = LetterGothic-Bold
0b1s = LetterGothic-Italic

Section [barcode]

This section is used to define the mapping of barcode and font id.

The eqpcl utility provides support for the Postscript barcode writer created by Terry Burton. When the barcode functionality is enabled in the configuration, the barcode code is included in the PS output and eqpcl creates calls from the PCL data.

Please refer to bwipp.terryburton.co.uk for more information on supported barcode types ("Symbologies") and their options.

When enabled, the barcode is identified by a font id (type face) and mapped to a barcode encoding and option. The barcode height is automatically scaled according to the font height. The barcode encoding and any number of options may be specified, separated by a space. Any number of barcode definitions may be present.

To enable barcode support the following setting in the configuration is required:

[config]
barcode = 1
The following setting defines the font 9900 as code39 with the option "includetext". The font 9901 is defined as qrcode.
[barcode]
9900 = code39 includetext
9901 = qrcode
9910 = code39 width=0.75
Various barcode symbologies are supported, including Code 39, Code 128, EAN and 2D codes such as QR-Code and Data Matrix.

The width option may be used to specify a scaling factor to adapt the barcode width to the available space. Please keep in mind that this could affect readability.

The supported options depend on the barcode type. The includetext option is typically supported and results in printing the clear text beneath the barcode. The includecheck option is supported with some barcode types and causes an extra check digit to be generated.

The barcodes and options may be tried interactively on the web site www.terryburton.co.uk/barcodewriter/generator/

Section [trayN]

The Tray sections are used to define virtual forms located in a paper tray.

A tray configuration may specify eps include files along with position and scaling options.

This is intended to ease the creation of custom forms. Instead of converting a custom form or logo into PCL format you may specify one or more EPS files (single page PS files _may_ work) to be used as overlay when the tray is used as a media source. An EPS file is a special postscript format that can only hold a single page.

[trayN]
# eps.file = path to include file (absolute path)
# xofs = move object x position (in decipoints, from left)
# yofs = move object y position (in decipoints, from bottom)
# scale = scale factor (in percent)
# align = align to paper edge (0=tl, 1=tr, 2=bl, 3=br, 4=orig)
# multiple objects are allowed, each starting with eps.file
  • The section name [trayN] identfies the tray. It consists of the word "tray" and a numeric value N that specifies the tray number in the PCL command. For example, [tray1] specifies the tray number one.

  • eps.file designates the absolute path to an EPS file that is used to overlay the page. Multiple overlays are supported, each starting with eps.file. On the Windows platform a slash is used instead of a backslash.

  • scale may be used to specify a percentage by which the EPS file is scaled. If not present, the original size is used. A value of 50 scales the EPS file to 50%.

  • align may be used to specifiy the alignment of the EPS content, relative to the paper edges. The following values are supported:
    • 0 = top/left
    • 1 = top/right
    • 2 = bottom/left
    • 3 = bottom/right
    • 4 = Use the position as specified in the EPS bounding box (relative to the Postscript reference point, the bottom left).
    The default is 0 which positions a EPS file releative to the top/left paper edge. This has no effect if the EPS file does not specify a bounding box.

  • xofs and yofs may be used to specify an offset of the placement of the EPS file content. The EPS file content is positioned to a paper edge, based on the information in the EPS bounding box. Any position specified in the bounding box is ignored. The xofs and yofs allow to move the object accordingly, relative to the original position. The value is denoted in decipoints, that is 1/720 inch (or 1/10 point, ~0.0353 mm). An offset of 1000 would indicate 1.38 inch and 35.28 mm.

To create an EPS file, save or export your image or document as EPS file. A single page Postscript file may work as well (but is not supported as there could be side effects). On Linux or HP-UX the ImageMagick conversion utility or the netpbm utilities may be used to convert a variety of image formats to an eps file. For example:

giftopnm sample.gif | pnmtoeps > sample.eps
jpegtopnm sample.jpeg | pnmtoeps > sample.eps
convert sample.png sample.eps

eqpcl.cfg template file

A default configuration file eqpcl.cfg is installed and may be customized.
A template eqpcl.cfg file is installed as newconfig/config/eqpcl.cfg.

# eqpcl.cfg
# @(#) $Revision: 27.1 $

### eqpcl config

[config]

# include path for eqpcl ps resources
#ps.include = 

# enable barcode (0=off, 1=on), default is off
barcode = 0

# enable overlay processing
# 0=off, 1=page started, 2=page complete, default is 1
overlay = 1

# gs path
#gs = /usr/bin/gs

# gs page size
gs.paper.size = a4

# gs custom options
#gs.print.opt =
#gs.pdf.opt =
#gs.opt =

# gs custom font path
#gs.fontpath = 

# custom postscript files to include
#include =

### PCL defaults

[default]

# default printer symbol set
#  8U = HP roman8
#  4U = HP roman9 (same as Roman8 with EUR sign)
#  9U = CP1252
#  0N = ISO latin1 (subset of cp1252)
# default is 8U
symset = 8U

# default paper size
#  1 = EXECUTIVE
#  2 = LETTER
#  3 = LEGAL
#  6 = LEDGER
# 26 = A4
# 27 = A3
# default is 26 = A4
paper.size = 26

# default paper source (tray). Default is 0
#paper.source = 0

# eolterm
# 0 - CR = CR, LF = LF, FF = FF
# 1 - CR = CR+LF, LF = LF, FF = FF
# 2 - CR = CR, LF = CR+LF, FF = CR+FF
# 3 - CR = CR+LF, LF = CR+LF, FF = CR+FF
# default is 0
#eolterm = 0

### font mapping

# To map PCL typefaces to Postscript fonts. A separate section 
# is defined for each typeface. The section name starts with 
# the literal "tf" and adds the PCL typeface id.
#
# [TfN]
# width = width/hight ratio
# <stroke>b<style>s = font name

### barcode mapping

#[barcode]
#9900 = code39 includetext
#9901 = code93 includetext includecheck

### tray definition

# eps.file = path to include file (absolute path)
# xofs = x position (from left)
# yofs = y position (from bottom)
# scale = scale factor (in percent)
# align = align to paper edge (0=tl, 1=tr, 2=bl, 3=br, 4=orig)
# multiple objects are allowed, each starting with eps.file

#[tray1]
#EPS.file = /usr/share/YaST2/theme/openSUSE/testpage/logo.eps
#xofs = -141
#yofs = 141
#scale = 25
#align = 1

See also

eqpcl utility and PCL to PDF conversion (B.08.20 release notes)


 
 
 
  Privacy | GDPR / DSGVO | Webmaster | Terms of use | Impressum Revision: 2017-06-20  
  Copyright © 1995-2024 Marxmeier Software AG