Aboat cupsParseOptions

zhengwc 030607127 at 163.com
Sat Apr 16 00:59:52 PDT 2011


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?




More information about the cups mailing list