[cups] Cut paper

Simon Hausdorf info at shausdorf.de
Tue Dec 15 04:12:44 PST 2015


Thank you for this informations.

Debug says:
I [15/Dec/2015:13:06:35 +0100] [Job 908] Started filter /usr/libexec/cups/filter/gstoraster (PID 20713)
[...]
D [15/Dec/2015:13:07:00 +0100] [Job 909] Looking for 'Zebra LP2844'
D [15/Dec/2015:13:07:00 +0100] [Job 909] Opening connection
D [15/Dec/2015:13:07:00 +0100] [Job 909] load_classdriver(/System/Library/Printers/Libraries/USBGenericPrintingClass.plugin) (kr:0x00000000)
D [15/Dec/2015:13:07:00 +0100] [Job 909] STATE: -connecting-to-device
I [15/Dec/2015:13:07:00 +0100] [Job 909] Daten an Drucker senden.
D [15/Dec/2015:13:07:00 +0100] [Job 909] Set job-printer-state-message to "Daten an Drucker senden.", current level=INFO
E [15/Dec/2015:13:07:00 +0100] [Job 909] Ghostscript not found
D [15/Dec/2015:13:07:00 +0100] [Job 909] Set job-printer-state-message to "Ghostscript not found", current level=ERROR
D [15/Dec/2015:13:07:00 +0100] [Job 909] PID 20724 (/usr/libexec/cups/filter/gstoraster) stopped with status 1.
E [15/Dec/2015:13:07:00 +0100] [Job 909] Es wurden keine Seiten gefunden.
D [15/Dec/2015:13:07:00 +0100] [Job 909] PID 20725 (/usr/libexec/cups/filter/rastertolabel) stopped with status 1.
D [15/Dec/2015:13:07:00 +0100] [Job 909] Sent 0 bytes...
D [15/Dec/2015:13:07:00 +0100] [Job 909] STATE: +cups-waiting-for-job-completed
D [15/Dec/2015:13:07:00 +0100] [Job 909] Waiting for read thread to exit...
D [15/Dec/2015:13:07:08 +0100] [Job 909] Read thread still active, aborting the pending read...
D [15/Dec/2015:13:07:08 +0100] [Job 909] Got USB return aborted during read
D [15/Dec/2015:13:07:08 +0100] [Job 909] PID 20726 (/usr/libexec/cups/backend/usb) exited with no errors.
E [15/Dec/2015:13:07:08 +0100] [Job 909] Job stopped due to filter errors; please consult the error_log file for details.
D [15/Dec/2015:13:07:08 +0100] [Job 909] The following messages were recorded from 13:07:00 to 13:07:00
D [15/Dec/2015:13:07:08 +0100] [Job 909] Das Verzeichnis „/System/Library/Printers/Libraries/USBGenericPrintingClass.plugin“ hat passende Zugriffsrechte (040755/uid=0/gid=0).
D [15/Dec/2015:13:07:08 +0100] [Job 909] End of messages
D [15/Dec/2015:13:07:08 +0100] [Job 909] printer-state=3(idle)
D [15/Dec/2015:13:07:08 +0100] [Job 909] printer-state-message="Es wurden keine Seiten gefunden."
D [15/Dec/2015:13:07:08 +0100] [Job 909] printer-state-reasons=none
D [15/Dec/2015:13:07:09 +0100] [Job 909] Unloading...

so I think there is an issue with ghostscript?
What is ghostscript for? Is it used by gstoraster?

> Am 15.12.2015 um 12:46 schrieb Helge Blischke <helgeblischke at web.de>:
> 
> 
>> Am 15.12.2015 um 11:32 schrieb Simon Hausdorf <info at shausdorf.de>:
>> 
>> I am running CUPS on a Mac (2.1).
>> I have added the gstoraster filter to "/usr/libexec/cups/filter"
>> and in my ppd file I have added this line:
>> 
>> *cupsFilter: "application/pdf application/vnd.cups-raster 30 gstoraster"
>> 
>> I have tried it also with "application/postscript"
>> 
>> but the Zebra does not print anymore.
>> 
> you need to add (a) conversion rule(s):
> 
> application/pdf			application/vnd.cups-raster	30	gstoraster
> application/postscript	application/vnd.cups-raster	30	gstoraster
> 
> into a file, say, local.convs, and put it into /private/etc/cups (as, on Mac OS X 10.11 (El Capitan),
> which I suppose you are using (as of Cupt 2.1), /usr and most of its sub directories are 
> forbidden to write on).
> Note that the cost (30 in the above example) is less that the default cost (100) in the file
> /usr/share/cups/mime/apple.convs .
> 
> The PPD should have the line
> 
> *cupsFilter: "application/vnd.cups-raster		50	rastertolabel"
> 
> Helge
> 
> PS: If more debug information is needed, execute
> cupsctl —debug-logging
> print a file to your zebra printer (preferably from the command line, so you know the job ID),
> and post the result of
> grep 'Job xxx‘ /var/log/cups/error_log
> (where xxx is the job-ID) in order to know what filters are called.
> _______________________________________________
> cups mailing list
> cups at cups.org
> https://www.cups.org/mailman/listinfo/cups




More information about the cups mailing list