Custom ppd for lazerjet printer works with linux only

Helge Blischke h.blischke at acm.org
Mon Apr 19 11:55:27 PDT 2010


Stephen wrote:

> I have a custom ppd file for a lazer jet 1320.
> All I have added is a custom paper size 5X8 index card.
> The ppd works great for users from linux desktops and linux servers but
> when a OSX user tries to print (from neooffice) the papersize is not in
> there menu of options. Here is the relevant section of the file:
> *OpenGroup: General/General
> 
> *OpenUI *PageSize/Page Size: PickOne
> *OrderDependency: 100 AnySetup *PageSize
> *DefaultPageSize: Letter
> *PageSize Letter/US Letter: "<</PageSize[612 792]/ImagingBBox
> null>>setpagedevice" *PageSize A4/A4: "<</PageSize[595 842]/ImagingBBox
> null>>setpagedevice" *PageSize 11x17/11x17: "<</PageSize[792
> 1224]/ImagingBBox null>>setpagedevice" *PageSize A3/A3: "<</PageSize[842
> 1191]/ImagingBBox null>>setpagedevice" *PageSize A5/A5: "<</PageSize[421
> 595]/ImagingBBox null>>setpagedevice" *PageSize B5/B5 (JIS):
> "<</PageSize[516 729]/ImagingBBox null>>setpagedevice" *PageSize
> Env10/Envelope #10: "<</PageSize[297 684]/ImagingBBox null>>setpagedevice"
> *PageSize EnvC5/Envelope C5: "<</PageSize[459 649]/ImagingBBox
> null>>setpagedevice" *PageSize EnvDL/Envelope DL: "<</PageSize[312
> 624]/ImagingBBox null>>setpagedevice" *PageSize EnvISOB5/Envelope B5:
> "<</PageSize[499 709]/ImagingBBox null>>setpagedevice" *PageSize
> EnvMonarch/Envelope Monarch: "<</PageSize[279 540]/ImagingBBox
> null>>setpagedevice" *PageSize Executive/Executive: "<</PageSize[522
> 756]/ImagingBBox null>>setpagedevice" *PageSize Legal/US Legal:
> "<</PageSize[612 1008]/ImagingBBox null>>setpagedevice" *PageSize 5x8
> Index Card: "<</PageSize[360 576]/ImagingBBox null>>setpagedevice"
> *CloseUI: *PageSize
> 
> Any Ideas?

At least your inex card entry must conform to the PPD spec:
- the value ("option keyword" as of the spec) must not contain slash, colon, 
space, tab, and newline characters, possibly followed by a "translation 
string" (which may contain white space) separated from the option keyword by 
a slash.

And, you should add the corresponding statements to the PageRegion and 
ImageableArea groups as well.

Helge





More information about the cups mailing list