Filter.exe: PCL Search/Replace & Optimization  

Filter.exe is used to pre-condition, fix or optimize legacy PCL print files in order to make them easier to convert. It is most frequently used to remove extraneous reset escape codes. It is also useful for correcting bad syntax or inserting formfeeds, etc.

usage: FILTER [-{1,2..}] <INPUT.pcl> <OUTPUT.pcl> "match code" "replace code"

Routines:

-1

Scrambles text to make test files that protect client data. (This feature is also available in PCLTool/PCLWorks in the Modify PCL option)

-2

Removes Kyocera PreScribe language from PCL files generated by Kyocera printer drivers.

-3

<INPUT.pcl> <OUTPUT.pcl> extracts "HDR2…" as first record

-4

<INPUT.pcl> <OUTPUT.pcl> strips all raster graphics

-5

Strips all the NULL characters from a PCL file. (This feature is also available in PCLTool/PCLWorks in the Modify PCL option.)

-6

<in> <out> {-<fontid> [-<fontid>]}

decrements chars by 3 if certain download fonts are in PCL file -<fontid> : applies offset only specific <fontid> (s)

-7

<INPUT.pcl> <OUTPUT.pcl> reorganizes fonts to eliminate redundancies and to optimize file. (This feature is also available in PCLTool/PCLWorks in the Modify PCL option.)

-s : further optimize by allocating character cells

-8

<INPUT.pcl> <OUTPUT.pcl> <font map> <fontdir> converts PCL5 to PCL4

-90

This routine performs a recursive scan of files below root, adds copy cmd to batch for wanted files.

<flags> <root dir> <filespec> <output batch>

Flags : (one or more criteria to select)

 -i uses font ids associated with scrambled char cells.

 -h : uses high ASCII (128 and above) char cells.

 -l : uses low ASCII ( 31 and less ) char cells.

-99

FILTER -99 <in>  <out>

Replaces PCL compression method 99 with Adaptive method

-100

This routine generates a ASCII Map file (.amp)

<INPUT.pcl> <OUTPUT.amp> <text map file> update of CDRS database

<INPUT.pcl>      Generated by PTC32.dll for unrecognized (missed) characters.

<OUTPUT.amp> Updated CDRS .amp file for PTC32.dll to use for text extractions.

<Text Map File> Text file to map unrecognized characters to correct character cell

 

Match/Replace code:

ASCII HEX [10] = Linefeed [12] = Formfeed [38] = Ampersand

 [13] = Carriage Return [27] = Escape

Examples 

"[27]E" Replace Resets which interrupt indexing with "blank".

"[13]" "[12]’ Replace a carriage return with a formfeed.

Below are special characters you can use in the DOS command line.

DOS Character

DECimal

HEXidecimal

Explanation

<space>

32

20

breaks argument

" double quote

34

22

groups arguments

& ampersand

38

26

launches application in background

<

60

3C

stdin from ...

>

62

3E

stdout to ...

^ caret

94

5E

gets removed

|

124

7C

pipe to another app

An argument using any of these characters works, but only if enclosed in double quotes.

a^a&a|a<a> a will get mangled

"a^a&a|a<a> a" will work

Double quotes in the middle of argument should be preceded by a backslash:

"aaa\"aaa" will be seen as aaa"aaa

© 2007 PageTechnology Marketing, Inc. – PCL Utilities