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

Add qty property to PrintJob #5

Open
simonyjung opened this issue Oct 27, 2020 · 1 comment
Open

Add qty property to PrintJob #5

simonyjung opened this issue Oct 27, 2020 · 1 comment

Comments

@simonyjung
Copy link

simonyjung commented Oct 27, 2020

I've been advised by [email protected] to use the qty property instead of copies of print options to set number of copies when sending raw zpl jobs. This seems to be missing from the PrintNode-Python library. In my experience, using copies works for raw jobs on windows and mac clients but does not work on linux.

https://www.printnode.com/en/docs/api/curl#printjob-creating

Currently using this

gateway.PrintJob(
       printer=printer_id, options={"copies": num_copies}, job_type="raw", base64=base64_raw_bytes_decoded
    )

From printnode api documentation, one would expect the following to work

gateway.PrintJob(
        printer=printer_id, qty=num_copies, job_type="raw", base64=base64_raw_bytes_decoded
    )
@simonyjung simonyjung changed the title qty property of PrintJob missing Add qty property to PrintJob Oct 27, 2020
@jihoon796
Copy link

+1 on this issue. Has anyone else looked at this?

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

2 participants