[cups] Cut paper

Simon Hausdorf info at shausdorf.de
Wed Dec 16 01:35:41 PST 2015


And this is my ppd file

*PPD-Adobe: "4.3"
*%%%% PPD file for EPL2 Label Printer with CUPS.
*%%%% Created by the CUPS PPD Compiler CUPS v2.1.0.
*% Copyright 2007-2014 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: "2.1"
*LanguageVersion: English
*LanguageEncoding: ISOLatin1
*PCFileName: "zebraep2.ppd"
*Product: "(EPL2 Label Printer)"
*Manufacturer: "Zebra"
*ModelName: "Zebra EPL2 Label Printer"
*ShortNickName: "Zebra EPL2 Label Printer"
*NickName: "Zebra EPL2 Label Printer"
*PSVersion: "(3010.000) 0"
*LanguageLevel: "3"
*ColorDevice: False
*DefaultColorSpace: Gray
*FileSystem: False
*Throughput: "8"
*LandscapeOrientation: Plus90
*TTRasterizer: Type42
*% Driver-defined attributes...
*cupsVersion: 2.1
*cupsModelNumber: 17
*cupsManualCopies: False
*cupsFilter: "application/vnd.cups-raster 50 rastertolabel"

*OpenUI *PageSize/Media Size: PickOne
*OrderDependency: 10 AnySetup *PageSize
*DefaultPageSize: w288h360
*PageSize w288h360/Label - 4 x 5": "<</PageSize[288 360]/ImagingBBox null>>setpagedevice"
*PageSize w288h432/Label - 4 x 6": "<</PageSize[288 432]/ImagingBBox null>>setpagedevice"
*CloseUI: *PageSize

*OpenUI *PageRegion: PickOne
*OrderDependency: 10 AnySetup *PageRegion
*DefaultPageRegion: w288h360
*PageRegion w288h360/Label - 4 x 5": "<</PageSize[288 360]/ImagingBBox null>>setpagedevice"
*PageRegion w288h432/Label - 4 x 6": "<</PageSize[288 432]/ImagingBBox null>>setpagedevice"
*CloseUI: *PageRegion

*DefaultImageableArea: w288h360
*ImageableArea w288h360/Label - 4 x 5": "0 0 288 360"
*ImageableArea w288h432/Label - 4 x 5": "0 0 288 432"

*DefaultPaperDimension: w288h360
*PaperDimension w288h360/Label - 4 x 5": "288 360"
*PaperDimension w288h432/Label - 4 x 5": "288 432"

*MaxMediaWidth: "288"
*MaxMediaHeight: "3600"
*HWMargins: 0 0 0 0

*CustomPageSize True: "pop pop pop <</PageSize[5 -2 roll]/ImagingBBox null>>setpagedevice"
*ParamCustomPageSize Width: 1 points 36 288
*ParamCustomPageSize Height: 2 points 36 3600
*ParamCustomPageSize WidthOffset: 3 points 0 0
*ParamCustomPageSize HeightOffset: 4 points 0 0
*ParamCustomPageSize Orientation: 5 int 0 0

*OpenUI *Resolution/Output Resolution: PickOne
*OrderDependency: 20 AnySetup *Resolution
*DefaultResolution: 203dpi
*Resolution 203dpi/203 DPI: "<</HWResolution[203 203]>>setpagedevice"
*Resolution 300dpi/300 DPI: "<</HWResolution[300 300]>>setpagedevice"
*Resolution 600dpi/600 DPI: "<</HWResolution[600 600]>>setpagedevice"
*CloseUI: *Resolution

*OpenUI *Darkness/Output Darkness: PickOne
*OrderDependency: 20 AnySetup *Darkness
*DefaultDarkness: Normal
*Darkness Light: "<</cupsCompression 0>>setpagedevice"
*Darkness Medium: "<</cupsCompression 33>>setpagedevice"
*Darkness Normal: "<</cupsCompression 67>>setpagedevice"
*Darkness Dark: "<</cupsCompression 100>>setpagedevice"
*CloseUI: *Darkness

*OpenUI *CutMedia/Cut Labels: Boolean
*OrderDependency: 10 AnySetup *Cut
*DefaultCutMedia: True
*CutMedia False: "<</CutMedia 0>>setpagedevice"
*CutMedia True: "<</CutMedia 4>>setpagedevice"
*CloseUI: *CutMedia

*DefaultFont: Courier
*Font AvantGarde-Book: Standard "(001.006S)" Standard ROM
*Font AvantGarde-BookOblique: Standard "(001.006S)" Standard ROM
*Font AvantGarde-Demi: Standard "(001.007S)" Standard ROM
*Font AvantGarde-DemiOblique: Standard "(001.007S)" Standard ROM
*Font Bookman-Demi: Standard "(001.004S)" Standard ROM
*Font Bookman-DemiItalic: Standard "(001.004S)" Standard ROM
*Font Bookman-Light: Standard "(001.004S)" Standard ROM
*Font Bookman-LightItalic: Standard "(001.004S)" Standard ROM
*Font Courier: Standard "(002.004S)" Standard ROM
*Font Courier-Bold: Standard "(002.004S)" Standard ROM
*Font Courier-BoldOblique: Standard "(002.004S)" Standard ROM
*Font Courier-Oblique: Standard "(002.004S)" Standard ROM
*Font Helvetica: Standard "(001.006S)" Standard ROM
*Font Helvetica-Bold: Standard "(001.007S)" Standard ROM
*Font Helvetica-BoldOblique: Standard "(001.007S)" Standard ROM
*Font Helvetica-Narrow: Standard "(001.006S)" Standard ROM
*Font Helvetica-Narrow-Bold: Standard "(001.007S)" Standard ROM
*Font Helvetica-Narrow-BoldOblique: Standard "(001.007S)" Standard ROM
*Font Helvetica-Narrow-Oblique: Standard "(001.006S)" Standard ROM
*Font Helvetica-Oblique: Standard "(001.006S)" Standard ROM
*Font NewCenturySchlbk-Bold: Standard "(001.009S)" Standard ROM
*Font NewCenturySchlbk-BoldItalic: Standard "(001.007S)" Standard ROM
*Font NewCenturySchlbk-Italic: Standard "(001.006S)" Standard ROM
*Font NewCenturySchlbk-Roman: Standard "(001.007S)" Standard ROM
*Font Palatino-Bold: Standard "(001.005S)" Standard ROM
*Font Palatino-BoldItalic: Standard "(001.005S)" Standard ROM
*Font Palatino-Italic: Standard "(001.005S)" Standard ROM
*Font Palatino-Roman: Standard "(001.005S)" Standard ROM
*Font Symbol: Special "(001.007S)" Special ROM
*Font Times-Bold: Standard "(001.007S)" Standard ROM
*Font Times-BoldItalic: Standard "(001.009S)" Standard ROM
*Font Times-Italic: Standard "(001.007S)" Standard ROM
*Font Times-Roman: Standard "(001.007S)" Standard ROM
*Font ZapfChancery-MediumItalic: Standard "(001.007S)" Standard ROM
*Font ZapfDingbats: Special "(001.004S)" Standard ROM

*% End of zebraep2.ppd, 125046 bytes.


> Am 16.12.2015 um 10:09 schrieb Simon Hausdorf <info at shausdorf.de>:
> 
> Ok, now our Zebra is printing again!
> In the log I can see:
> [Job 928] PID 9902 (/usr/libexec/cups/filter/gstoraster) exited with no errors.
> 
> after about 55% of printing. But the labels are still not cut at the end of a print job!
> 
> This is still at the end of my ppd file
> 
> *OpenUI *CutMedia/Cut Labels: Boolean
> *OrderDependency: 10 AnySetup *Cut
> *DefaultCutMedia: True
> *CutMedia False: "<</CutMedia 0>>setpagedevice"
> *CutMedia True: "<</CutMedia 4>>setpagedevice"
> *CloseUI: *CutMedia
> 
>> Am 15.12.2015 um 22:55 schrieb Helge Blischke <helgeblischke at web.de>:
>> 
>> 
>>> Am 15.12.2015 um 19:20 schrieb Simon Hausdorf <info at shausdorf.de>:
>>> 
>>> I have still the same error!
>>> 
>>> There you can see the gs is installed correctly:
>>> /usr/local/bin/gs
>>> GPL Ghostscript 9.16 (2015-03-30)
>>> Copyright (C) 2015 Artifex Software, Inc.  All rights reserved.
>>> This software comes with NO WARRANTY: see the file PUBLIC for details.
>>> 
>>> But it still says Ghostscript not found.
>>> 
>> 
>> Arghh – I forgot the exacerbated sandboxing of cups since OS X 10.10 (Yosemite),
>> which denied access to /usr/local.
>> 
>> –	Shut down cups
>> –	Append the line
>> 	Sandboxing relaxed
>> 	to /etc/cups/cups-files.conf
>> –	start cups
>> 
>> Then I hope it will work.
>> 
>> PS: I hacked a small shell script for restarting cups:
>> 
>> ————— snip ——————
>> #!/bin/sh
>> case $1 in
>>       stop)
>>               launchctl unload /System/Library/LaunchDaemons/org.cups.cupsd.plist
>>               ;;
>>       start)
>>               launchctl load /System/Library/LaunchDaemons/org.cups.cupsd.plist
>>               ;;
>>       restart)
>>               launchctl unload /System/Library/LaunchDaemons/org.cups.cupsd.plist
>>               launchctl load /System/Library/LaunchDaemons/org.cups.cupsd.plist
>>               ;;
>> esac
>> ————————— snip ——————————
>> It must be executed as root (via sudo, e.g.)
>> 
>> _______________________________________________
>> cups mailing list
>> cups at cups.org
>> https://www.cups.org/mailman/listinfo/cups
> 




More information about the cups mailing list