Aboat cupsParseOptions

zhengwc 030607127 at 163.com
Sun Apr 17 17:44:06 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 =3D ppdOpenFile(getenv("PPD"));
> >  ppdMarkDefaults(ppd);
> >  numOptions=3DcupsParseOptions(argv[5],0,&options);
> > 	if((numOptions!=3D0)&&(options!=3DNULL)){
> > 		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=EF=BC=9F
>
> What version of CUPS?
>
> What operating system?
>
> What error are you getting?
>
> ________________________________________________________________________
> Michael Sweet, Senior Printing System Engineer, PWG Chair
>
My system is ubuntu9.04,and has the version of CUPS1.3.9. debug has no error.what's the problem?




More information about the cups-devel mailing list