Skip to contentSkip to conversation

Scenarios for using the various Open Print API

Printing-architecture Pete Zannucci 2 participants 2 messages Dec 3, 2002

lore
Share & tools
lore
#0 lore raw

SORRY - LONG APPEND

In Claudia's note below, she has hit on the gray area. Do we need a capabilities API or not?

We need to define what "Capabilities" really is and what is the crossover between capabilities and the standard attributes that are currently defined in protocols such as IPP and to be provided by the printer (or subsystem).

The basic capabilities of a device will be provided back through the papiPrinterQuery call which will enable printing. The problem with these attribute/values is that the information provided back will be non-hardware / rendering specific. We should get back the standard IPP information, at minimum, which provides for things like:
form
tray information
media
finishing options, etc.

This information formulates the basics of capabilities. These items will let you send a job and pick certain hardware features/finishing options but do not provide possible additional information on how the job can be laid out and what are possible rendering options based on the hardware's capabilities.

We need to come to a consensus on what additional types of information an application might need to be able to generate a job to it's satisfaction. We have discussed how to provide printable area and margin information. That is a start. Their may be other things that some apps. would like to know about a device and that should be added as a possible separate api (get all the pertinent info. back from a device on what it supports) or could possibly be added as an additional grouping of attributes.

There are two sides of adding additional attributes that worry me.
1. No protocol support for the attributes so current devices will not be able to handle or provide the information back on a query.
2. Since there is no support there will need to be an intermediary such as a ppd or a driver when using such a device.

In reality most information is provided by the current set of attributes except for some specific hardware and rendering information. We should be able to get that information based on a current group of settings so that an application can generate a page correctly.
This could be done with the current attribute mechanism though we have to make sure that we offset any discrepancies that a particular implementation (such as IPP or various other backends) with system specific function to provide the additional information to the application.

Peter Zannucci

IBM Linux Technology Center
Open Source Software Development
Omni Print Project http://sourceforge.net/projects/omniprint
Austin, TX - Tel. 512-838-4687 (t/l 678) [email protected]

Claudia Alimpich/Boulder/IBM@[email protected] on 11/21/2002 01:09:27 PM

Sent by: [email protected]

To: "printing-architecture" <[email protected]>
cc:
Subject: [Printing-architecture] RE:Scenarios for using the various Open
Print API

Well, that last note that I sent sure looked bad! Let me try again.

Following is what I came up with for possible scenarios describing how to use the APIs together. Please provide your comments and any additions. When it is clean, I will post it to the PWG site.

Claudia Alimpich
[email protected]
---------------------------------------------------------------------------

21Nov2002

Using the Application, JTAPI, Capabilities API, PAPI, and Print
Service

Following are scenarios that describe how the various Open Print APIs can be used (or not used) together:

1) One of the following:
a) The Application provides the user with choices that are determined by the application itself.
b) The Application uses the Capabilities API* to determine the capabilities of the target device(s) and then provides the user with choices.
c) The Application uses a PPD file to determine the capabilities of the target device.
d) What other ways can device capabilities be determined?
2) The user makes selections from the choices.
3) Optionally, one of the following:
a) The Application uses the JTAPI to create a job ticket.
b) The Application sets IPP attributes that describe how the job is to be processed.
c) Both a) and b).
4) One of the following:
a) The Application uses the PAPI to submit the data/content file and the job ticket to the Print Service.
b) The Application uses the PAPI to submit the data/content file and the IPP attributes to the Print Service.
c) The Application uses the PAPI to submit the data/content file, the job ticket, and the IPP attributes to the Print Service.
d) The Applicaiton saves the job ticket without submitting it or the data/content file to the Print Service.

* Question: Is the Capabilities API part of PAPI or a separate API?

_______________________________________________
Printing-architecture mailing list
[email protected]
http://freestandards.org/mailman/listinfo/printing-architecture

#1 lore raw
Quoted 10 lines · Pete Zannucci

...
We need to come to a consensus on what additional types of information an application might need to be able to generate a job to it's satisfaction. We have discussed how to provide printable area and margin information. That is a start. Their may be other things that some apps. would like to know about a device and that should be added as a possible separate api (get all the pertinent info. back from a device on what it supports) or could possibly be added as an additional grouping of attributes.

I'm not sure if the current PWG color attributes cover this, but providing the native colorspace as well as any profile information for the printer/driver might be useful. Right now all IPP provides is a "color-supported" boolean attribute, but knowing if the destination device/driver supports true CMYK/N-color rendering (typically used in a production workflow with apps like Photoshop, etc.) could be useful.

Quoted 5 lines

There are two sides of adding additional attributes that worry me.
1. No protocol support for the attributes so current devices will not be able to handle or provide the information back on a query.

Assuming that PAPI is providing the information, it can supplement the attributes as needed.

Quoted 3 lines

2. Since there is no support there will need to be an intermediary such as a ppd or a driver when using such a device.

I would say that this will be the case for the forseable future, and unless printer manufacturers suddenly have a cheap chipset they can put in their low-end devices, such support will only ever be available in high-end devices.

In any case, PAPI can handle the low-level details and provide the app with a common, consistent interface, right?

Signature · 3 lines
______________________________________________________________________
Michael Sweet, Easy Software Products                  [email protected]
Printing Software for UNIX                       http://www.easysw.com