PPD API/Compilation/Job Ticketconfusion asto what is deprecated

n3on 0xn3on at gmail.com
Fri Sep 21 10:09:14 PDT 2012


It's fine that there is no mapping to the IPP attributes as I intend to modify the PPD that is then pushed remotely and installed with its new defaults. However the deprecated API you pointed me to does not allow modifications. Would the PPD Compiler API fit my needs? Also is there any example code snippets for the Compiler API?

http://www.cups.org/documentation.php/doc-1.6/api-ppdc.html

One final question, mostly out of curiosity, how does IPP make its attributes persistent? Does it modify the PPD or create some extra file?

Thanks again for all of your help Michael.

> You can continue to use the PPD functions documented here:
>
>     http://www.cups.org/documentation.php/doc-1.6/api-ppd.html
>
> However, there is no API to provide the mapping from PPD options to IPP attributes.
>
>
> On 2012-09-20, at 1:57 PM, n3on <0xn3on at gmail.com> wrote:
>
> > Michael,
> >
> > Thanks for your informative reply. I'm curious however, if there is a way to determine PPD options without requiring a CUPS server to be installed? The UI will not be building options for itself locally but for remote machines. And it would not make sense for my UI to add a fictitious printer with the desired PPD to a local cups server just to determine its available options. Is there any alternative?
> >
> > Thanks again.
> >
> >> You want to control IPP attributes, particularly the -default values, and not PPD options going forward.  CUPS maps PPD options to IPP attributes.
> >>
> >> The Job Ticket API is part of the CUPS API documentation:
> >>
> >>    http://www.cups.org/documentation.php/doc-1.6/api-cups.html
> >>
> >> Look at the cupsCheckDestSupported, cupsCopyDestConflicts, cupsCopyDestInfo, cupsGetDestMediaByName, cupsGetDestMediaBySize, cupsLocalizeDestOption, and cupsLocalizeDestValue  functions, which provide the basics for IPP-based job tickets and UI.
> >>
> >> (and please let us know if there are specific things you need in order to support UI that are not currently exposed)
> >>
> >>
> >> On 2012-09-20, at 11:10 AM, n3on <0xn3on at gmail.com> wrote:
> >>
> >>> Hello,
> >>>
> >>> I'm attempting to develop a system to control PPD options just as the cups web interface does. However, I'm confused as to what I should be using per the 1.6 documentation. There is the "PPD Compiler API", then the "Introduction to the PPD Compiler" which states right up top that "The PPD compiler and related tools are deprecated and will be removed in a future release of CUPS.", and then there is "PPD API (DEPRECATED)" which goes on to say "The PPD API is deprecated starting in CUPS 1.6/OS X 10.8. Please use the new Job Ticket APIs in the CUPS API documentation. These functions will be removed in a future release of CUPS." And there is no Job Ticket API.
> >>>
> >>> Could someone please point me in the right direction as to what I should be using that is not deprecated? I would really appreciate it.
> >>> _______________________________________________
> >>> cups-dev mailing list
> >>> cups-dev at easysw.com
> >>> http://lists.easysw.com/mailman/listinfo/cups-dev
> >>
> >> __________________________________________________
> >> Michael Sweet, Senior Printing System Engineer, PWG Chair
> >>
> >
> > _______________________________________________
> > cups-dev mailing list
> > cups-dev at easysw.com
> > http://lists.easysw.com/mailman/listinfo/cups-dev
>
> __________________________________________________
> Michael Sweet, Senior Printing System Engineer, PWG Chair
>





More information about the cups-devel mailing list