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

Matthias Apitz guru at unixarea.de
Tue Sep 26 23:34:10 PDT 2017


Hello,

A colleague of mine configured a network printer in cups-1.4.3 as:

Description:    FALSCH
Driver:         Generic PCL Laser Printer (grayscale)
Connection:     lpd://10.49.8.8/KONICAMINOLTAC364SeriesPCL
Defaults:       job-sheets=none, none media=iso_a4_210x297mm

The device (IP addr) is her own PC running "Microsofts" LPD service which perhaps
should forward the stream to a central brinter here in house.

When printing the "Print Testpage" from the "Maintenance" menu in the
cups' web page it says: 

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

I debuged into this with the cups debug level and even with stracing the
daemon to understand whats going on:

cupsd reads in a file

10804 open("/usr/local/sisis-pap/cups/var/spool/cups/00000007", O_RDONLY) = 15
10804 fcntl(15, F_GETFD)                = 0
10804 fcntl(15, F_SETFD, FD_CLOEXEC)    = 0
10804 read(15, "#CUPS-BANNER\nShow printer-name printer-info printer-location printer-make-and-model printer-driver-name printer-driver-version paper-size imageable-area\nHeader Printer Test Page\nFooter Printer Test Page\nNotice This test page was
produced by CUPS 1.4.3.\nImage images/cups.png\nImage images/color-wheel.png\n\n", 4096) = 305
10804 read(15, "", 4096)                = 0

and from the conf files it should know how to handle this page as:

# grep banner share/cups/mime/mime.*
share/cups/mime/mime.convs:application/vnd.cups-banner	application/postscript		33	bannertops
share/cups/mime/mime.types:application/vnd.cups-banner	string(0,'#CUPS-BANNER')

The software 'bannertops' is also there. 

But as the printer is configured as 'Generic PCL Laser Printer' it gives up with:

10804 write(5, "I [26/Sep/2017:16:12:12 +0200] [Job ???] Request file type is application/vnd.cups-banner.\n", 91) = 91
10804 write(5, "D [26/Sep/2017:16:12:12 +0200] Print-Job client-error-document-format-not-supported: Unsupported format 'application/vnd.cups-banner'!\n", 135) = 135
10804 write(5, "E [26/Sep/2017:16:12:12 +0200] Returning IPP client-error-document-format-not-supported for Print-Job (ipp://localhost:631/printers/FALSCH) from localhost\n", 155) = 155
10804 sendto(12, "HTTP/1.1 200 OK\r\nDate: Tue, 26 Sep 2017 14:12:12 GMT\r\nServer: CUPS/1.4\r\nConnection: Keep-Alive\r\nKeep-Alive: timeout=30\r\nContent-Language: en\r\nContent-Type: application/ipp\r\nContent-Length: 191\r\n\r\n", 196, 0, NULL, 0
<unfinished ...>

When the printer is configured as 'KONICA MINOLTA C360SeriesPS(P) (color)'
using a PPD file, all is fine, also with banner page before and after the
testpage.

My question is: How is this supposed to work for PCL printers? Couln't the
Postscript stream, produces by 'bannertops' not converted by ghostscript into
PCL? Or do I have a complete misunderstanding how it should work?

I don't know if this matters, it is with cups-1.4.3.

Thanks

	matthias

-- 
Matthias Apitz               |  /"\   ASCII Ribbon Campaign:
E-mail: guru at unixarea.de     |  \ /   - No HTML/RTF in E-mail
WWW: http://www.unixarea.de/ |   X    - No proprietary attachments
phone: +49-176-38902045      |  / \   - Respect for open standards
                             | en.wikipedia.org/wiki/ASCII_Ribbon_Campaign


More information about the cups mailing list