[cups] cups && banner pages on non Postscript printer
Matthias Apitz
guru at unixarea.de
Wed Sep 27 05:32:45 PDT 2017
El día miércoles, septiembre 27, 2017 a las 01:47:28p. m. +0200, Helge Blischke escribió:
>
> > Am 27.09.2017 um 08:34 schrieb Matthias Apitz <guru at unixarea.de>:
> >
> >
> > 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
> >
> Execute
> cupsctl —debug-logging
> Then print the test page, get the job ID and then do
> grep 'Job xxxx‘ /var/log/cups/error_log
> where xxxx is the job ID, and post the output, please.
D [27/Sep/2017:14:24:35 +0200] cupsdReadClient: 11 1.1 Print-Job 1
D [27/Sep/2017:14:24:35 +0200] Print-Job ipp://localhost:631/printers/FALSCH
D [27/Sep/2017:14:24:35 +0200] [Job ???] Auto-typing file...
I [27/Sep/2017:14:24:35 +0200] [Job ???] Request file type is application/vnd.cups-banner.
D [27/Sep/2017:14:24:35 +0200] Print-Job client-error-document-format-not-supported: Unsupported format 'application/vnd.cups-banner'!
E [27/Sep/2017:14:24:35 +0200] Returning IPP client-error-document-format-not-supported for Print-Job (ipp://localhost:631/printers/FALSCH) from localhost
all this has been said already :-)
--
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