Printing text with ascii control characters

Helge Blischke h.blischke at srz.de
Fri Apr 18 04:31:22 PDT 2008


Mariano Aliaga wrote:
> Hi,
>    I have the following situation: I need to print text files from legacy applications with ascii control characters (that define font size, text orientation, etc) to several HP Laserjet network printers. I've tried many models/drivers (postscript, pcl, raw, etc) but the only one that properly recognizes those control characters is "Generic text-only printer".
>    The problem is that I also need to print other contents (pdf mainly), and can't do it with text-only printing (works ok with postscript or pcl drivers).
>    How can I print BOTH kind of contents right? Any help would be appreciated.
> 
> Thanks in advance.

Insert into this printer's PPD a line (near the beginning)

*cupsFilter: "text/plain 0 -"

which causes text files being fed directly to
the printer's backend; no filters involved.

If your text jobs begin with a unique control sequence,
you could even define a "proprietary" document format
to distinguish these from ordinary text.

Helge

-- 
Helge Blischke
Softwareentwicklung

H.Blischke at acm.org




More information about the cups mailing list