[cups] cups && banner pages on non Postscript printer

Matthias Apitz guru at unixarea.de
Wed Sep 27 23:15:58 PDT 2017


El día miércoles, septiembre 27, 2017 a las 10:50:30a. m. -0400, Michael Sweet escribió:

> Matthias,
> 
> It isn't just Ghostscript you need, it is the CUPS filters provided with Ghostscript (which needs to know that CUPS is installed in your custom location...)
> 
> Also, as Helge points out, the PPD for your printer needs to actually provide a CUPS raster filter to generate PCL for the printer.  It isn't clear whether that is the case...
> 


Michael and Helge,

Thanks for your replies.

I created a new printer with the web frontend of cups-1.4.3 as:

Driver:	Generic PCL Laser Printer (grayscale)
Connection:	socket://10.49.2.11:9100/?waiteof=false
Defaults:	job-sheets=none, none media=iso_a4_210x297mm 

I did not provided any PPD file and cups created one as 'etc/cups/ppd/genpcl.ppd'
by its own; this contains:

*PPD-Adobe: "4.3"
*%%%% PPD file for PCL Laser Printer with CUPS.
*%%%% Created by the CUPS PPD Compiler CUPS v1.4.3.
*% Copyright 2007-2008 by Apple Inc.
*% Copyright 1997-2007 by Easy Software Products.
*% 
*% These coded instructions, statements, and computer programs are the
*% property of Apple Inc. and are protected by Federal copyright
*% law.  Distribution and use rights are outlined in the file "LICENSE.txt"
*% which should have been included with this file.  If this file is
*% file is missing or damaged, see the license at "http://www.cups.org/".
*FormatVersion: "4.3"
*FileVersion: "1.4"
*LanguageVersion: English
*LanguageEncoding: ISOLatin1
*PCFileName: "generpcl.ppd"
*Product: "(PCL Laser Printer)"
*Manufacturer: "Generic"
*ModelName: "Generic PCL Laser Printer"
*ShortNickName: "Generic PCL Laser Printer"
*NickName: "Generic PCL Laser Printer"
*PSVersion: "(3010.000) 0"
*LanguageLevel: "3"
*ColorDevice: False
*DefaultColorSpace: Gray
*FileSystem: False
*Throughput: "8"
*LandscapeOrientation: Plus90
*TTRasterizer: Type42
*% Driver-defined attributes...
*cupsBackSide: "Normal"
*cupsVersion: 1.4
*cupsModelNumber: 0
*cupsManualCopies: False
*cupsFilter: "application/vnd.cups-raster 50 rastertohp"
*cupsLanguages: "en"
...

The filter 'rastertohp' was compiled and installed with cups-1.4.3 in
/usr/local/sisis-pap/cups/lib/cups/filter/rastertohp (due to the configured
option '--prefix=/usr/local/sisis-pap' which might look unsual, but
we deliver this to customers and do not want to pollute the customer
Linux and SunOS systems in other places than below /usr/local/sisis-pap)
The filter is there and working:

# /usr/local/sisis-pap/cups/lib/cups/filter/rastertohp
Usage: rastertohp job-id user title copies options [file]

But when I print a testpage from the cups' webpage Maintenance --> Print Test Page
it says in the webpage:


    Print Test Page genpcl Error

    Unable to print test page:

    Unsupported format 'application/vnd.cups-banner'!

and it does not exec any filter; it only looks on start of cupsd
if the filter 'rastertohp' is there:

# grep raster /tmp/cu.tr
5042  access("/usr/local/sisis-pap/cups/lib/cups/filter/imagetoraster", F_OK) = 0
5042  access("/usr/local/sisis-pap/cups/lib/cups/filter/pstoraster", F_OK) = -1 ENOENT (No such file or directory)
5042  stat("/usr/local/sisis-pap/cups/lib/cups/filter/rastertohp", {st_mode=S_IFREG|0555, st_size=41440, ...}) = 0
5042  stat("/usr/local/sisis-pap/cups/lib/cups/filter/rastertohp", {st_mode=S_IFREG|0555, st_size=41440, ...}) = 0

So, what the cupsd is missing as config or software?

	matthias



-- 
Matthias Apitz, ✉ guru at unixarea.de, ⌂ http://www.unixarea.de/  ☎ +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub


More information about the cups mailing list