OSX打印机纸张

cups使用PPDS文件来对每个打印机进行功能配置设定。用户可以通过修改PPDs文件来对每个打印机进行特殊配置。这里是一个例子。

每个打印机默认地支持若干的类型的纸张类型和大小,可能很长,在用户选择的时候会不太方便,那么可以通过修改PPDs文件来把这个列表缩短。

找到*DefaultPaperDimension,后面是锁支持的每个纸张大小的定义和说明,而且支持每种语言自己的文字说明。只要是在不需要的纸张类型前面加一个%,就可以了。

比如

*%PaperDimension Executive/Executive: "522 756"

*%PaperDimension HalfLetter/Statement:"396 612"

*%PaperDimension B5/JIS B5: "516 729"

......

看图对比

变更前的

OSX打印机纸张_第1张图片

变更后的

OSX打印机纸张_第2张图片

变更后可以使用cupstestppd对该PPDs文件进行检测。


添加自定义的纸张,一种方法,让用户在打印界面中自己定义但是是当前用户有效(当然也可以发布给其它用户,也可以做到本机登录用户有效, 参见com.apple.print.custompapers文件),或者变更PPDs这样可以本机全局有效,添加的时候,需要添加如下的信息

*PaperDimension Letter/Letter: "612 792"

*PageSize Letter/Letter: "

*PageRegion Letter/Letter: "

*ImageableArea Letter/Letter: 


Letter的例子:


*PaperDimension Letter/Letter: "612 792"
*da.PaperDimension Letter/Letter: ""
*de.PaperDimension Letter/Letter: ""
*es.PaperDimension Letter/Letter: ""
*fi.PaperDimension Letter/Letter: ""
*fr.PaperDimension Letter/Lettre: ""
*it.PaperDimension Letter/Letter: ""
*ja.PaperDimension Letter/レター: ""
*ko.PaperDimension Letter/레터: ""
*nl.PaperDimension Letter/Letter: ""
*no.PaperDimension Letter/Letter: ""
*pt.PaperDimension Letter/Carta: ""
*sv.PaperDimension Letter/Letter: ""
*zh_CN.PaperDimension Letter/信纸: ""
*zh_TW.PaperDimension Letter/Letter: ""



*PageSize Letter/Letter: "
    <</DeferredMediaSelection true /PageSize [612 792] /ImagingBBox null /MediaClass null >> setpagedevice"
*End
*da.PageSize Letter/Letter: ""
*de.PageSize Letter/Letter: ""
*es.PageSize Letter/Letter: ""
*fi.PageSize Letter/Letter: ""
*fr.PageSize Letter/Lettre: ""
*it.PageSize Letter/Letter: ""
*ja.PageSize Letter/レター: ""
*ko.PageSize Letter/레터: ""
*nl.PageSize Letter/Letter: ""
*no.PageSize Letter/Letter: ""
*pt.PageSize Letter/Carta: ""
*sv.PageSize Letter/Letter: ""
*zh_CN.PageSize Letter/信纸: ""
*zh_TW.PageSize Letter/Letter: ""


*PageRegion Letter/Letter: "
    <</DeferredMediaSelection true /PageSize [612 792] /ImagingBBox null /MediaClass null >> setpagedevice"
*End
*da.PageRegion Letter/Letter: ""
*de.PageRegion Letter/Letter: ""
*es.PageRegion Letter/Letter: ""
*fi.PageRegion Letter/Letter: ""
*fr.PageRegion Letter/Lettre: ""
*it.PageRegion Letter/Letter: ""
*ja.PageRegion Letter/レター: ""
*ko.PageRegion Letter/레터: ""
*nl.PageRegion Letter/Letter: ""
*no.PageRegion Letter/Letter: ""
*pt.PageRegion Letter/Carta: ""
*sv.PageRegion Letter/Letter: ""
*zh_CN.PageRegion Letter/信纸: ""
*zh_TW.PageRegion Letter/Letter: ""



*ImageableArea Letter/Letter: 				"12.00 12.12 599.88 780.00"
*da.ImageableArea Letter/Letter: ""
*de.ImageableArea Letter/Letter: ""
*es.ImageableArea Letter/Letter: ""
*fi.ImageableArea Letter/Letter: ""
*fr.ImageableArea Letter/Lettre: ""
*it.ImageableArea Letter/Letter: ""
*ja.ImageableArea Letter/レター: ""
*ko.ImageableArea Letter/레터: ""
*nl.ImageableArea Letter/Letter: ""
*no.ImageableArea Letter/Letter: ""
*pt.ImageableArea Letter/Carta: ""
*sv.ImageableArea Letter/Letter: ""
*zh_CN.ImageableArea Letter/信纸: ""
*zh_TW.ImageableArea Letter/Letter: ""






你可能感兴趣的:(osx,null,语言)