- 15 Apr 2024
- 1 Minute to read
- Print
- DarkLight
- PDF
Printer not recognizing line-feed printing text from Unix.
- Updated on 15 Apr 2024
- 1 Minute to read
- Print
- DarkLight
- PDF
Problem:
Printing straight text (from LPR) through Unix is not working correctly. Assumption is that the printer is not recognizing the line-feeds properly.
Cause:
This problem has been observed against text jobs from certain UNIX OSes which send through line-feeds in a non standard format.
Solution:
A filter (filter.exe, available on the CD at tools plugins\filter) has been developed to translate these end-of-line characters to a standard format. The Text Filter is a pre-processor plug-in replacement for the Page Counter. It can be used to wrap long lines at a given number of characters and to translate end-of-line characters to a standard format. Processing is of text files only, except for when binary files are parsed as text; PCL and PostScript files will pass through this filter unaffected.
The Text Filter is configured using the following registry key and values:
Key: "HKEY_LOCAL_MACHINE\SOFTWARE\Pharos\Text Filter"
Name: "Text Check"
Type: DWORD
Meaning:
If 0 then the text filter will attempt to parse binary files as text.
Default: 1
Name: "Text Type"
Type: String
Meaning:
Any end-of-line characters will be translated to this text type. Default: "dos". Other values are "mac" and "unix".
Name: "Text Width"
Type: DWORD
Meaning:
The number of characters to wrap lines at. If 0 then lines will not be wrapped.
Default: 0
To use this filtering in the pagecounter, copy both filter.exe and filterlf.bat, then make filterlf.bat the plug-in for PageCountJob.