[cups.general] CustomPageSize query

Michael R Sweet msweet at apple.com
Tue May 20 13:43:35 PDT 2008


ronaly wrote:
>> ronaly agdeppa wrote:
>>>> ronaly wrote:
>>>>> DDK handles the creation of custompagesize by just adding like this example code:
>>>>>    VariablePaperSize Yes
>>>>>    MinSize 216 216
>>>>>    MaxSize 612 1020
>>>>>
>>>>> However, in a CustomPageSize query I need to add some code to make my printer works for a customized paper size.
>>>>>
>>>>> Is there a way I can append additional code in the CustomPageSize query?
>>>>> *CustomPageSize True: "pop pop pop <</PageSize[5 -2 roll]/ImagingBBox null>>setpagedevice"
>>>> Instead of using the convenience directives, specify the values as
>>>> attributes, e.g.:
>>>>
>>>>      Attribute CustomPageSize True "your code"
>>>>      Attribute ParamCustomPageSize Width "1 points min max"
>>>>      Attribute ParamCustomPageSize Height "2 points min max"
>>>>      Attribute ParamCustomPageSize WidthOffset "3 points 0 0"
>>>>      Attribute ParamCustomPageSize HeightOffset "4 points 0 0"
>>>>      Attribute ParamCustomPageSize Orientation "5 integer 3 3"
>>>>      Attribute HWMargins "" "left bottom right top"
>>>>
>>>> --
>>>> ______________________________________________________________________
>>>> Michael R Sweet                        Senior Printing System Engineer
>>>>
>>> Hi Michael,
>>>
>>> Thank you for always responding.
>>>
>>> I tried that already but in the generated ppd,
>>> ParamCustomPageSize were not included.
>>>
>>> DDK cannot generate ParamCustomPageSize when manually added as attributes.
>>>
>>> I'm using cupsddk 1.2.3
>> Strange, because the DDK doesn't filter attributes.
>>
>> Can you post a link to your .drv file?
>>
>> --
>> ______________________________________________________________________
>> Michael Sweet, Easy Software Products           mike at easysw dot com
> 
> So far of all the keywords I used with attributes, only ParamCustomPageSize does not work.
> 
> Is it ok to show only the custompagesize code in my drv?
> Here it is:
> 
> //CustomPageSize
> Attribute CustomPageSize True "
> 	pop pop pop
> 	statusdict begin
>         2 copy
>         currentpagedevice /UniversalDetails get /Orientation get () setuniversalsize
>     end
> 	<< /PageSize [5 -2 roll]
>    		/ImagingBBox null
>    		/Policies <</PageSize 2>>
> 	>> setpagedevice"
> 
> Attribute HWMargins "" "12 12 12 12"
> Attribute MaxMediaWidth "" "612"
> Attribute MaxMediaHeight "" "1020"
> Attribute ParamCustomPageSize Width "1 points 216 612"
> Attribute ParamCustomPageSize Height "2 points 216 1020"
> Attribute ParamCustomPageSize WidthOffset "3 points 0 0"
> Attribute ParamCustomPageSize HeightOffset "4 points 0 0"
> Attribute ParamCustomPageSize Orientation "5 int 0 1"

Hmm, when I make a .drv file with these items it seems to work just
fine.

-- 
______________________________________________________________________
Michael R Sweet                        Senior Printing System Engineer





More information about the cups mailing list