Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for "sides" job-attribute-tag for double-sided printing #590

Open
pkuppens opened this issue Jul 12, 2024 · 0 comments
Open

Support for "sides" job-attribute-tag for double-sided printing #590

pkuppens opened this issue Jul 12, 2024 · 0 comments

Comments

@pkuppens
Copy link

Problem:

The document I try to print double-sided comes out of the printer single-sided.

What I tried:

When executing the PRINT_JOB, where I added the following to the message:

            "job-attributes-tag": {
                "sides": "two-sided-long-edge",
            }

What I saw:

I note that the output is NOT double-sided

Analysis:

I checked the output of get-printer-attributes, and it contains:

      "sides-default": "one-sided",
      "sides-supported": [
        "one-sided",
        "two-sided-long-edge",
        "two-sided-short-edge"
      ],

In the debug logging when I execute the print_example, I see:
2024-07-12 11:19:34,960 - pyipp.serializer - DEBUG - Unknown IppTag for sides

Code inspection:

Indeed, src/pyipp/tags.py does not contain "sides" in the ATTRIBUTE_TAG_MAP

So I think the problem is caused by not completely serializing the request.

Suggestion/Request

  • Include "sides" in src/pyipp/tags.py
  • Set the proper value - Should this be "sides": IppTag.KEYWORD, or IppTag.TEXT, or something else?
  • Other functional changes if required
  • Write tests

Note

While I feel comfortable programming in Python, I'm also new to IPP and this library.
I would gladly contribute to this library but require some pointers for a high-quality solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant