Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: disabled softproof checkbox on lpadmin-added queue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: disabled softproof checkbox on lpadmin-added queue



radj wrote:
    lpadmin does not register the ICC profiles for the queue in Leopard
    and earlier.  The lpadmin in CUPS 1.4 and later *does* handle profile
    registration (actually, cupsd does it so that the profiles are
    registered no matter how you add the printer...)

This sounds hopeless. :(

    Second, Add Printer and makequeues (the program that auto-adds
    printers when you plug them in) do low-level IPP requests to add
    the printer via the CUPS API - essentially what lpadmin does.  They
    also register the color profiles via the ColorSync APIs.

Do you know what APIs I should start at? I'm new to this profiling thing. :D

You can look at the code in CUPS 1.4's scheduler/ipp.c (look for the "apple_*" functions) and the _ppdHashName function in cups/localize.c. None of the color profile stuff is pretty, and I spent quite a bit of time getting it right since there are tons of edge cases to deal with.

Also keep in mind that all of this profile stuff can change between
OS releases and it *must* run as root to register system-wide
profiles - use AuthorizationExec for that from a user session.

The easiest path is probably to just punt on auto-adding network
printers and use makequeues for USB (and I think Firewire) printers.

--
______________________________________________________________________
Michael R Sweet                        Senior Printing System Engineer
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Printing mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >disabled softproof checkbox on lpadmin-added queue (From: radj <email@hidden>)
 >Re: disabled softproof checkbox on lpadmin-added queue (From: Michael R Sweet <email@hidden>)
 >Re: disabled softproof checkbox on lpadmin-added queue (From: radj <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.