[cups.development] Aboat cupsParseOptions

Michael Sweet msweet at apple.com
Sat Apr 16 17:58:41 PDT 2011


On Apr 16, 2011, at 12:59 AM, zhengwc wrote:
> when we add the printers' option in the PPD file,we need the function 'cupsParseOptions' to let the optionMark useful.so I add the below code to rastertoepson.c:
>  ppd = ppdOpenFile(getenv("PPD"));
>  ppdMarkDefaults(ppd);
>  numOptions=cupsParseOptions(argv[5],0,&options);
> 	if((numOptions!=0)&&(options!=NULL)){
> 		cupsMarkOptions(ppd,numOptions,options);
> 		cupsFreeOptions(numOptions,options);
> 	}
>  ...
>  This code find in Star's printer program.But when I use my program to print job,it makes error.Somebody can give me suggestion?

What version of CUPS?

What operating system?

What error are you getting?

________________________________________________________________________
Michael Sweet, Senior Printing System Engineer, PWG Chair





More information about the cups mailing list