Parsing arguments to the backend
user at domain.invalid
user at domain.invalid
Mon Jun 21 04:50:58 PDT 2004
Hi,
i want to write a backend for cups. I need to parse some
infos like a path to the backend.
Something like this:
<Printer>
Info PDF_CMYK
DeviceURI pdftest://*/Path/To/Ouputfolder/CMYK
...
</Printer>
<Printer>
Info PDF_RGB
DeviceURI pdftest://*/Path/To/Ouputfolder/RGB
...
</Printer>
I have written a small backend wich just writes the
backendarguments to a debuglog, but the sixth argument
(options) is allways /CMYK or /RGB, the last part of the path
i put in printers.conf.
How do i parse custom options to the backend, like rgb=true
cmyk=false?
How should i handle spaces or special caracters in the path?
Thanks for any help,
Stefan
More information about the cups
mailing list