The integration of ELP into this spooling system is pretty easy and needs only these three quick steps:

1. Extract the ELP files into any directory and set the permissions 777, for example into this directory: /hpos/custom/stethos

2. Generate a Pearl script with those lnes in that directory named elp_filter_pl and make it also accessible:

$printer = $ARGV[0];
$out_data = /hpos/custom/stethos/ELP.Linux64 STDIN STDOUT -d/hpos/custom/stethos/forms -c/hpos/custom/stethos/forms/convert.ini -p1$printer;
print $out_data

3. Tell the spooling system via command line, that there is a printer that would like to use this filter:

pdset -cd -x" user-filter-exit-program = "!{dazel-install-directory}!/bin/perl""
pdset -cd -x" user-filter-exit-arguments  = "/hpos/custom/stethos/elp_filter_pl""
pdset -cd -+x" user-filter-exit- arguments  = "!{destination}!""

If you have a lot of printers, there is another way to set that filter more elegant:

  • Generate an ASCII file with all printer definitions

    pdconfig -d -s -c FileName

  • Load the file into an ASCII editor and add to each printer this definition (3 lines)

    user-filter-exit-program = "!{dazel-install-directory}!/bin/perl"
    user-filter-exit-arguments = "!{dazel-install-directory}!/custom/stethos/elp_filter.pl",
    "!{destination}!"

  • Overwrite the existing printer definitions by the new one:

    pdconfig -u -d Filename