problem with custom ppd options

Christian Lupien lupien at physique.usherbrooke.ca
Wed Jul 9 18:46:14 PDT 2008


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?

Thanks

P.S. I know my *CustomPhone is not postscript. I am not trying to get this to the printer. I just want the substitutions to work right and those are testing strings.
Also both custom strings don't interpret the <0A> as a linefeed, they get dumped as is in the output.




More information about the cups mailing list