[cups-devel] [ipptool] How do I request stapled output?

pipitas pipitas at gmail.com
Wed Oct 28 16:42:17 PDT 2015


(Sorry, forgot to fix the subject in my initial reply.)
----------------------------

Hi Mike


> Date: Wed, 28 Oct 2015 08:14:17 -0400
> From: Michael Sweet <msweet at apple.com>
> Subject: Re: [cups-devel] [ipptool] How do I request stapled output?
>

I'm not sure I understand even a single half of your two sentences fully...


> The finishings attribute is an enumeration


Yes, that's what the print device also replied when I queried it. However,
looking at
https://www.ietf.org/assignments/ipp-registrations/ipp-registrations.xml and
searching for "staple-top-right" on that page, I find two lines, stating
different things (??):

   finishing-template staple-top-right name(MAX) | type2 keyword [PWG5100.1]

and

    finishings 22 staple-top-right 1setOf type2 enum [RFC2911]

(The first is under the headline* "Keyword Attribute Values ... Reference
[RFC2911]"*, the second under the headline* "Enum Attribute Values ...
Reference [RFC2911]"*.)

I'm confused now. Can you help to un-confuse me again? (Maybe I need to
grokk the difference between "finishings" and "finishing-template" first,
which I haven't yet...)


> - ipptool is mapping the pre-standard vendor enum to its symbolic name
> (cups prefix).
>

What exactly does this remark mean? What do you mean with "pre-standard
vendor enum", what do you mean with "cups prefix"?


> Right now ipptool doesn't map symbolic names in the other direction


Since I don't get the meaning of your previous remark, I also don't get
this one.


> - arguably that is a bug, so please file one at:
>
>     https://www.cups.org/str.php


Ok, done. Even though I didn't understand  your comments.

And I'll make sure it is fixed asap.
>

Thanks.

Can you please confirm (or negate+help me to correct), that the two ATTR
lines:

       GROUP job-attributes-tag
       ATTR keyword sides two-sided-short-edge
       ATTR enum finishings staple-top-right

in my *.test file were basically correct?

And that the fact they didn't work may be either an ipptool-bug or a bug in
the printer's IPP implementation?

On Wed, Oct 28, 2015 at 8:00 PM, <cups-devel-request at cups.org> wrote:

> Send cups-devel mailing list submissions to
>         cups-devel at cups.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         https://www.cups.org/mailman/listinfo/cups-devel
> or, via email, send a message with subject or body 'help' to
>         cups-devel-request at cups.org
>
> You can reach the person managing the list at
>         cups-devel-owner at cups.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of cups-devel digest..."
>
>
> Today's Topics:
>
>    1. Re: [ipptool] How do I request stapled output? (Michael Sweet)
>    2. Re: [UNKN] STR #4735: Cross compile a program using       CUPS
>       library (Michael Sweet)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 28 Oct 2015 08:14:17 -0400
> From: Michael Sweet <msweet at apple.com>
> To: "The CUPS developer list." <cups-devel at cups.org>
> Subject: Re: [cups-devel] [ipptool] How do I request stapled output?
> Message-ID: <66FA829F-74AE-4206-8A8B-F50AA6F62593 at apple.com>
> Content-Type: text/plain; charset=us-ascii
>
> The finishings attribute is an enumeration - ipptool is mapping the
> pre-standard vendor enum to its symbolic name (cups prefix).
>
> Right now ipptool doesn't map symbolic names in the other direction -
> arguably that is a bug, so please file one at:
>
>     https://www.cups.org/str.php
>
> And I'll make sure it is fixed asap.
>
> Sent from my iPad
>
> > On Oct 27, 2015, at 10:31 PM, pipitas <pipitas at gmail.com> wrote:
> >
> > I used ipptool to query an IPP-2.0 capable print device for its
> attributes,
> > using a self-written *.test file.
> >
> > Within the printer's reply I found the following:
> >
> > ~~~
> > finishings-supported (1setOf enum) =
> > none,staple,punch,edge-stitch,staple-top-left,\
> >
> >
> staple-top-right,edge-stitch-left,edge-stitch-top,edge-stitch-right,staple-dual-left,\
> >
> >
> staple-dual-top,staple-dual-right,cups-punch-dual-left,cups-punch-dual-top,\
> >
> >
> cups-punch-dual-right,cups-punch-quad-left,cups-punch-quad-top,cups-punch-quad-right
> > ~~~
> >
> > (I'm wondering how a printer vendor would name some punching options
> with a
> > "cups-" prefix. Or have such name types become part of official IPP
> specs?
> > Also, I'm wondering about the possible differences in "edge-stitch-left",
> > "staple-dual-left"? What is the difference between "staple" and "stitch"?
> > However, this is not my main concern currently...)
> >
> > I wrote another *.test file with Print-Job containing the following
> lines:
> >
> > ~~~
> >        GROUP job-attributes-tag
> >        ATTR keyword media "iso_a4_210x297mm"
> >        ATTR integer copies 1
> >        ATTR keyword sides two-sided-short-edge
> >        ATTR enum finishings staple
> >        FILE document-a4.pdf
> > ~~~
> >
> > This leads to an error:
> >
> > ~~~
> > ipptool: Bad enum value "staple-top-left" on line 26.
> > ~~~
> >
> > If I comment out the respective line in my *.test file, the document
> prints
> > succesfully (but un-stapled).
> >
> > If I replace the respective line with the following...
> >
> > ~~~
> >        ATTR enum finishings staple
> > ~~~
> >
> > ...the job also prints, but again un-stapled.
> >
> > My questions are:
> >
> > 1. Did I construct my original *.test file correctly for requesting the
> > stapling?
> > 2. Or is this a bug in ipptool?
> > 3. What is the generic method to specify arbitrary job attributes in a
> > *.test file (for which the printer had reported to support them)?
> > _______________________________________________
> > cups-devel mailing list
> > cups-devel at cups.org
> > https://www.cups.org/mailman/listinfo/cups-devel
>
>
> ------------------------------
>
> Message: 2
> Date: Wed, 28 Oct 2015 06:42:34 -0700 (PDT)
> From: Michael Sweet <noreply at cups.org>
> To: ison.thomas at mindteck.com
> Cc: ison.thomas at mindteck.com, cups-devel at cups.org
> Subject: Re: [cups-devel] [UNKN] STR #4735: Cross compile a program
>         using   CUPS library
> Message-ID: <20151028134234.6849F140278 at www.cups.org>
> Content-Type: text/plain
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
>
> DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK
> BELOW.
>
> [STR Unresolved]
>
> General support is not available via the STR form. Please post to the CUPS
> user list for general support.
>
> You need to link to all of the libraries that libcups uses (avahi, gnutls,
> krb5, etc.)
>
> Link: https://www.cups.org/str.php?L4735
> Version: 1.7-current
> Fix Version: None
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.14 (GNU/Linux)
> Comment: GPGTools - https://gpgtools.org
>
> iQIcBAEBCgAGBQJWMNDKAAoJENujp6sI12IjEEcP+wRI8VAVeGDAc4kEAsGdrRdV
> 9mESYPkKEYiKz6NpizK6pmFrXXTknMeJuWrty9JaJPg5pBE/Y5O6jCfsKJGTXX5Z
> pskrfdN6Hod2ajXlv7eWD1UFf83biPTDV/pxP10DAV3kKYmVOA8hkI99Lkt3T9C7
> x27J5e4d0N41LtoR7cydeU/z7iK3IW9Ftks0sC9hauL5NxZEn1H6yUrI73BmSLJ0
> nAvMUJIUTdCGsEB/2oprYripvpgf2knWVCg0D9UkWLccg5tWdANpASRjcDk3TuAC
> 70bF4z9n7A06BJXd+OL0FWQCSX6E+CEWhcfSNXI+nPJlT4K2MfE8TNVWVILfG7/F
> 6omRFi6h+AYtbXipe3zZlqhdGvtqS17e4+Y4941nFTflPgS3Vx1EeTXV/4Px7Qvr
> YUvJlp5jyV30CoYM35j5VKduk6JAnA/wr+XoJ4YsA+ybPw9MlJVZHSwyo4P1CVAk
> jQAGsJNYSTQ5yXaEJP4BTknrptO7SEos3AIw/UFvY48yvF+y5TNCwEoJZ3FNZIw8
> Z860yIk/eKqgCuIuOgD35DlsDeJ+mCEiRpTOc4qMJHqQMrK7+n8B0eStKpgUBuXL
> O1UwSgsPAGOX7pbcfAdCTHWAg62QaMAvmNounXQMtqDyMf2YNbVxNCtL1kH09Ise
> kW42wg2Z/WTMfPX5wnPZ
> =qjZT
> -----END PGP SIGNATURE-----
>
>
>
> ------------------------------
>
> _______________________________________________
> cups-devel mailing list
> cups-devel at cups.org
> https://www.cups.org/mailman/listinfo/cups-devel
>
>
> End of cups-devel Digest, Vol 23, Issue 18
> ******************************************
>



More information about the cups-devel mailing list