[cups.general] Getting a Laserjet CR -> CR/LF filter to work.

Helge Blischke h.blischke at srz.de
Wed Jun 27 03:11:49 PDT 2007


marc+cups at milestonerdl.com wrote:
> I'm trying to replace LPRng with CUPS on an new install.
> 
> LPRng uses the filter ifhp and this filter allows for CR to CR/LF
> conversions like unix2dos can do.
> 
> The closed source custom application outputs:
> 1b 28 73 31 36 2e 36 36  68 37 76 30 54 1b 39 1b  |.(s16.66h7v0T.9.|
> 26 6c 35 63 33 65 31 30  35 46 1b 26 61 31 4c 0a  |&l5c3e105F.&a1L.|
> 0a 0a 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |..              |
> so the normal 'make the text postscript' is not going to work
> as the 'raw text' is PCL.
> 
> Is there a already written script/program to do this conversion
> for insertion into /usr/lib/cups/filter/ ?
> 

I suppose your printer is a PCL device. Thus, instead of
copying the stuff and converting LF to CRLF, you could
configure the printer to accept LF only as line termination.
Perhaps your closed source app permits doing so by issuing
the respective escape sequence (or do it by JCL command).

Otherwise, copy the stuff using a Perl script using
the crlf layer for either input or output (Perl 8.x
required).

Helge


-- 
Helge Blischke
Softwareentwicklung

H.Blischke at acm.org




More information about the cups mailing list