How to automatic to select driver when add printer

xianyu.ge xianyu.ge at gmail.com
Wed Apr 1 20:47:32 PDT 2009


I have make the problem out use your provide info, thank you very much. But I always hope you can provide the simple link at developer.apple.com, I can use the sample for learning more knowlege about cups, I will appeciate your help.

> I am sorry for my mistake.
> I fund the sample that you said, but couldn't find, could you give me the link, thanks for you work.
>
> > cups-pdf isn't ours, so I can't help you there...
> >
> > The Sample Raster Driver sources (available via ADC on developer.apple.com
> > ) include a sample backend and PPD that support auto-matching.  The
> > PPD contains:
> >
> >      *Product: "(Sample Raster)"
> >      *Manufacturer: "Acme"
> >      *ModelName: "Acme Sample Raster"
> >      *ShortNickName: "Acme Sample Raster"
> >      *NickName: "Acme Sample Raster, 1.0"
> >      *1284DeviceID: "MFG:Acme;MODEL:Sample Raster;"
> >
> > and the backend reports:
> >
> >      direct sampletopdf://Acme/Sample%20Raster "Acme Sample Raster"
> > "Sample Raster Driver" "MFG:Acme;MODEL:Sample Raster;"
> >
> > On Mar 30, 2009, at 2:21 AM, xianyu.ge wrote:
> >
> > > Thanks for you reply, but I tried this also can't selcet driver
> > > automaticly, I test under Mac os 10.5, and your good app(cups-pdf)
> > > also can't select driver automaticly. if I do something wrong?
> > > please tell me, thank you very much.
> > >
> > >>
> > >> --Apple-Mail-2-17448399
> > >> Content-Transfer-Encoding: 7bit
> > >> Content-Type: text/plain;
> > >> 	charset=us-ascii;
> > >> 	format=flowed;
> > >> 	delsp=yes
> > >>
> > >> You'll need a matching PPD, usually using Product or 1284DeviceID
> > >> strings. Your backend then generates a listing that includes this
> > >> information in the make-and-model and 1284-device-id fields ("man
> > >> backend") which is used to match the corresponding strings in the PPD
> > >> that you've installed in a common location (such as /usr/share/cups/
> > >> model).
> > >>
> > >> On Mar 26, 2009, at 10:50 PM, xianyu.ge wrote:
> > >>
> > >>> Hi, all,
> > >>> I am new to cups, recently I begin to study cups, I have write a
> > >>> backend like cups-pdf, when I add printer I can select my virture
> > >>> driver, the problem is the printer can't select driver automaticly,
> > >>> or have an default driver as other printer, so what can I do?
> > >>> please give me some advise, any advice is welocme, thanks.
> > >>> _______________________________________________
> > >>> cups-dev mailing list
> > >>> cups-dev at easysw.com
> > >>> http://lists.easysw.com/mailman/listinfo/cups-dev
> > >>
> > >> ________________________________________
> > >> Michael R Sweet, Senior Printing System Engineer
> > >>
> > >>
> > >> --Apple-Mail-2-17448399
> > >> Content-Transfer-Encoding: quoted-printable
> > >> Content-Type: text/html;
> > >> 	charset=us-ascii
> > >>
> > >> <html><body style=3D"word-wrap: break-word; -webkit-nbsp-mode:
> > >> space; =
> > >> -webkit-line-break: after-white-space; ">You'll need a matching
> > >> PPD, =
> > >> usually using Product or 1284DeviceID strings. Your backend then =
> > >> generates a listing that includes this information in the make-and-
> > >> model =
> > >> and 1284-device-id fields ("man backend") which is used to match
> > >> the =
> > >> corresponding strings in the PPD that you've installed in a common =
> > >> location (such as /usr/share/cups/model).<div><div><br><div><div>On
> > >> Mar =
> > >> 26, 2009, at 10:50 PM, xianyu.ge wrote:</div><br =
> > >> class=3D"Apple-interchange-newline"><blockquote
> > >> type=3D"cite"><div>Hi, =
> > >> all,<br> &nbsp;I am new to cups, recently I begin to study cups, I
> > >> have =
> > >> write a backend like cups-pdf, when I add printer I can select my =
> > >> virture driver, the problem is the printer can't select driver =
> > >> automaticly, or have an default driver as other printer, so what
> > >> can I =
> > >> do? &nbsp;please give me some advise, any advice is welocme, =
> > >> thanks.<br>_______________________________________________<br>cups-
> > >> dev =
> > >> mailing list<br><a =
> > >> href=3D"mailto:cups-dev at easysw.com">cups-dev at easysw.com</
> > >> a><br>http://list=
> > >> s.easysw.com/mailman/listinfo/cups-dev<br></div></blockquote></
> > >> div><br><di=
> > >> v>
> > >> <span class=3D"Apple-style-span" style=3D"border-collapse:
> > >> separate; =
> > >> color: rgb(0, 0, 0); font-family: Monaco; font-size: 12px; font-
> > >> style: =
> > >> normal; font-variant: normal; font-weight: normal; letter-spacing: =
> > >> normal; line-height: normal; orphans: 2; text-align: auto; text-
> > >> indent: =
> > >> 0px; text-transform: none; white-space: normal; widows: 2; word-
> > >> spacing: =
> > >> 0px; -webkit-border-horizontal-spacing: 0px; =
> > >> -webkit-border-vertical-spacing: 0px; =
> > >> -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: =
> > >> auto; -webkit-text-stroke-width: 0px; "><span class=3D"Apple-style-
> > >> span" =
> > >> style=3D"border-collapse: separate; color: rgb(0, 0, 0); font-
> > >> family: =
> > >> Helvetica; font-size: 12px; font-style: normal; font-variant:
> > >> normal; =
> > >> font-weight: normal; letter-spacing: normal; line-height: normal; =
> > >> orphans: 2; text-indent: 0px; text-transform: none; white-space:
> > >> normal; =
> > >> widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing:
> > >> 0px; =
> > >> -webkit-border-vertical-spacing: 0px; =
> > >> -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: =
> > >> auto; -webkit-text-stroke-width: 0px; "><div style=3D"word-wrap: =
> > >> break-word; -webkit-nbsp-mode: space; -webkit-line-break: =
> > >> after-white-space; =
> > >> "><div><div>________________________________________</
> > >> div><div>Michael R =
> > >> Sweet, Senior Printing System Engineer</div></div></div></span></
> > >> span>
> > >> </div>
> > >> <br></div></div></body></html>=
> > >>
> > >> --Apple-Mail-2-17448399--
> > >>
> > >
> > > _______________________________________________
> > > cups-dev mailing list
> > > cups-dev at easysw.com
> > > http://lists.easysw.com/mailman/listinfo/cups-dev
> >
> > ____________________________________
> > Michael R Sweet, Senior Printing System Engineer
> >
> >
> >
>





More information about the cups-devel mailing list