Implement N-up label printing #995
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Make label printing more flexible by allowing to put multiple labels onto a single PDF page in a grid ("N-up printing").
This way you can use e.g. A4 sheets with pre-cut labels and print them in your household inkjet/laser printer - no need for a special label printer.
The grid of the sheet is set by
xcount
andycount
which I added to the form (but not yet to the database).You can also set a
skipcount
which skips the given number of labels in case you have partly printed sheets from previous prints (feature as described/requested in #577).The size and position tweaking can be done in the additional css to fit any label sheet type.
As far as I have tested, it doesn't break the original behavior using the default values
xcount=ycount=1, skipcount=0
.This is a draft because no translation or db migration exists yet.