problem with custom ppd options

Christian Lupien lupien at physique.usherbrooke.ca
Wed Jul 9 21:10:02 PDT 2008


> Christian Lupien wrote:
> > I have been trying to get custom ppd options as described
> >  http://www.cups.org/documentation.php/spec-ppd.html
> > to work. My cups version is 1.3.7 -8.fc9 (Fedora Core)
> >
> > I have created my own ppd file which contains the following
> > *JCLOpenUI JCLPhone/Phone number (, for pause): PickOne
> > *OrderDependency: 10.7 JCLSetup *JCLPhone
> > *DefaultJCLPhone: interntest
> > *JCLPhone None/No number: ""
> > *JCLPhone interntest/62026: "@PJL COMMENT OID_ATT_FAX_DESTINATION_PHONE 62026;<0A>"
> > *JCLPhone external/9,555-555: "@PJL COMMENT OID_ATT_FAX_DESTINATION_PHONE 9,555-555;<0A>"
> > *JCLCloseUI: *JCLPhone
> > *CustomJCLPhone True: "@PJL COMMENT OID_ATT_FAX_DESTINATION_PHONE \1;<0A>"
> > *ParamCustomJCLPhone Text: 1 string 0 32
> >
> > and also
> > *OpenUI Phone/Phone number (, for pause): PickOne
> > *OrderDependency: 45.0 AnySetup *Phone
> > *DefaultPhone: interntest
> > *Phone None/No number: ""
> > *Phone interntest/62026: "@PJL COMMENT OID_ATT_FAX_DESTINATION_PHONE 62026;<0A>"
> > *Phone external/9,555-555: "@PJL COMMENT OID_ATT_FAX_DESTINATION_PHONE 9,555-555;<0A>"
> > *CloseUI: *Phone
> > *CustomPhone True: "@PJL COMMENT OID_ATT_FAX_DESTINATION_PHONE \1;<0A>"
> > *ParamCustomPhone Text: 1 string 0 32
> >
> >
> > I see both options in my user interfaces (gnome, lpr/lpoptions) and I can enter whatever I want. My backend is set to a file so I can check was is created in the final postscript file (it is a postscript printer so the last filter is pstops).
> >
> > The control file show exactly what I entered in the user interface, so it reaches cups properly, but the substition is never done for the JCL option and for the other option it only works if what is entered in the user interface is something like Custom.123456 which will introduce 123456 in the postscript file.
> >
> > I would expect the string I enter in the UI to be included at the proper place in both cases and not to have to enter "Custom." in front of it.
> >
> > Am I doing something wrong or are the custom options broken?
>
> Sounds like the GNOME implementation is broken.  Report the problem
> to the GNOME folks...

Ok for the stuff from GNOME (I checked kde and I could not change the custom value. Is there any working implementation?)

But this does not explain the problem with the JCL custom (I could not get it to work with lpr -o JCLPhone=Custom.1234
That did select the Custom output strings but 1234 is nowhere to be found (it did not replace \1).

Cheers
Christian





More information about the cups mailing list