-
Notifications
You must be signed in to change notification settings - Fork 4
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
Added support to print multiple labels at once #2
base: main
Are you sure you want to change the base?
Conversation
@abrasive let me know if you can accept my pull request :) |
I added Zontex changes to the appsocket_print_server.py file and printing multiple pages works with CUPS now too. |
probably once the printing is finished we should delete the temp files, that should be a good practice. |
I have no idea how to do this. But I just added your additions and tweak it slightly. The tempfile class looks like it would manage all the temporary files by it self. The original author did use it in his code too. |
When I added @Zontex code, it complained that many functions were deprecated because I think PyPDF2 is at a newer version. I went through and updated everything it complained about and now I have this working. Unsure how to properly contribute. When I tried to add the code block in this comment the other apostrophes in the code caused issues. Attaching a txt file of the code. Let me know if there is a better way |
To add I haven't gone through @alpharesearch app socket code to confirm this also works there... |
deprecation update
The PDF file will be broken into multiple files and printed one by one, with no effect on the printing speed when testing, stable.