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

Label sheet printer #5883

Merged
merged 17 commits into from
Nov 8, 2023

Conversation

SchrodingersGat
Copy link
Member

@SchrodingersGat SchrodingersGat commented Nov 8, 2023

This PR implements a new "builtin" plugin which prints multiple labels onto a single sheet, and then renders to a PDF

  • Automatically array the labels onto the page
  • Multiple sheets printed as required

@martonmiklos please review and LMK what you think, I have based this heavily on your PR 👍


@SchrodingersGat SchrodingersGat added enhancement This is an suggested enhancement or new feature plugin Plugin ecosystem report Report/Label generation labels Nov 8, 2023
@SchrodingersGat SchrodingersGat added this to the 0.13.0 milestone Nov 8, 2023
Copy link

netlify bot commented Nov 8, 2023

Deploy Preview for inventree-web-pui-preview canceled.

Name Link
🔨 Latest commit c4b06bc
🔍 Latest deploy log https://app.netlify.com/sites/inventree-web-pui-preview/deploys/654bf0c2aa310d0008370cf6

@SchrodingersGat
Copy link
Member Author

@martonmiklos I have taken your great work over at #4805 and re-implemented as a plugin.

Note that none of the existing models / templates are touched.

@wolflu05 your "printing options" functionality is used here too :)

@SchrodingersGat
Copy link
Member Author

Example output:

Screenshot 2023-11-09 at 12 50 34 am

Copy link
Contributor

@wolflu05 wolflu05 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great as a starting point. Already looking forward to have more options and a template database in the future.

@SchrodingersGat SchrodingersGat merged commit a0b1ba6 into inventree:master Nov 8, 2023
23 checks passed
@SchrodingersGat SchrodingersGat deleted the label-sheet-printer branch November 8, 2023 22:00
@MixasikM
Copy link

MixasikM commented Jul 9, 2024

Hello, are there options to adopt label generation to different sheet formats?
Like different padding between labels or from the beginning/top of the page.
As not always label sheets are the same + some printers are not able to print without any border

@SchrodingersGat
Copy link
Member Author

The default sheet plugin is pretty generic. What sheets are you working with? I have started work on a plugin for standard sheet sizes (for various commercial brands) but has not progressed very far to date.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement This is an suggested enhancement or new feature plugin Plugin ecosystem report Report/Label generation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FR]Print multiple labels on a sheet [FR] Allow label printing plugins to handle printing in bulk
3 participants