[IPP] Redundancies between IPP attributes and PWG-raster header

[IPP] Redundancies between IPP attributes and PWG-raster header

Anton Thomasson antonthomasson at gmail.com
Sat Oct 17 11:24:30 UTC 2020


Michael,

Thanks for the insight!
It made me do a fresh take on the issue with my printers rejecting jobs.
Turns out it was regardless of format, and due to me encoding the
attributes in question as Enum instead of Keyword.

Serves me right for implementing my own IPP (and raster) codecs. :)
(Kudos for good reference material!)
Indeed, reading cupsRasterInitPWGHeader was also really helpful in this,
and i should be revisiting it.

Again, thanks for sorting me out.

Br,
Anton

Den tors 15 okt. 2020 kl 22:24 skrev Michael Sweet <msweet at msweet.org>:

> Anton,
>
> > On Oct 15, 2020, at 3:23 PM, Anton Thomasson via ipp <ipp at pwg.org>
> wrote:
> >
> > Hi
> >
> > I am the developer of a very simple printing app for Sailfish OS that
> goes by the name "SeaPrint".
> >
> > From my experimentation with raster formats, I have found that there are
> several IPP attributes that describe things that need/should be set in the
> (PWG-)raster header.
> > It has even been the case that setting attributes on IPP itself that are
> in agreement with the value in the raster header, jobs would not be
> accepted by my printer(s).
> >
> > Is there any reason/background to this that would be good to know in
> order to understand it better?
>
> Generally, the page header is provided to support per-page overrides (size
> and/or source, typically) and a mix of color and grayscale pages in order
> to optimize printing.
>
> Unfortunately, we don't have an implementor's guide for PWG Raster, but my
> personal advice is to have the page header match the job attributes.  The
> CUPS cupsRasterInitPWGHeader function can be used to initialize the page
> header consistent with the job attributes.
>
> ________________________
> Michael Sweet
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pwg.org/pipermail/ipp/attachments/20201017/4ce433cb/attachment.html>


More information about the ipp mailing list