[cups.general] CustomPageSize query

Michael R Sweet msweet at apple.com
Wed May 14 10:19:14 PDT 2008


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





More information about the cups mailing list