[cups.development] Wrong product string returned by the PPD API?
Michael Sweet
msweet at apple.com
Wed Aug 12 13:59:48 PDT 2009
On Aug 12, 2009, at 1:49 PM, Laser, Curtis wrote:
> I have a PPD that contains two product strings. These strings
> specify the
> same device except that one has a network port (ex. "(HP LaserJet
> 2000000)"
> and "(HP LaserJet 2000000n)".
> ...
> the log file reports that the product is "HP LaserJet 2000000n"!
Correct. The ppd_file_t "product" member shows the last Product
keyword value in the PPD file. If you want to see all of the Product
keywords, use ppdFindAttr and ppdFindNextAttr.
> ...
> Should I get the actual product string when using the PPD that
> supports two
> products? Or does the ppd api think that it doesn't matter which
> string is
> returned since both are described by the same file?
When we create a printer queue, we don't filter out the "other"
Product strings from the PPD file, we just copy the PPD file pretty
much as-is (although we do set the default page size that corresponds
to the locale...)
___________________________________________________
Michael Sweet, Senior Printing System Engineer
More information about the cups
mailing list