-
-
Notifications
You must be signed in to change notification settings - Fork 782
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 text looks weird if multiple labels are printed. #3528
Comments
I tried seeing what happens by going to debug mode, but that unfortunately puts the second label on top of the second label so doesn't really help.. |
InvenTree/InvenTree/label/api.py Line 161 in 427404b
I would imagine it is due to this line here. Weird. I'll try to reproduce on my end. |
I can reproduce pretty easily. The issue may be one of the following:
If I had to put money on it, probably 1 |
@nwns |
I would tend to agree that the issue is related to how Inventree merges the separate labels. In my experimentation trying to figure out what the cause was I tried replacing the substitution with static text and the text came out fine. @matmair That would be what is it. I was on the server information screen not the about screen. |
@nwns I tried out a few different ways of merging the pages but all with the same outcome. If you can work out the key to getting the rendering right please let us know |
- Revert to 54.3 - Fixes inventree#3528
* Pin weasyprint version - Revert to 54.3 - Fixes #3528 * Simplify label printing for multiple pages * Simplify PDF generation for multiple report outputs * Add content wrapper div for base label template - Allows more extensibility
* Pin weasyprint version - Revert to 54.3 - Fixes inventree#3528 * Simplify label printing for multiple pages * Simplify PDF generation for multiple report outputs * Add content wrapper div for base label template - Allows more extensibility (cherry picked from commit 87e7112)
Fast, as usual @SchrodingersGat ! Nice work. Works for me (after |
You can also append the old weasyprint version into your |
Please verify that this bug has NOT been raised before.
Describe the bug*
When printing multiple labels to a PDF, the text includes spacing. When printing a single PDF, this does not occur.
Example with the built-in part label template
Barcode Part Label - Simple part label with Code128 barcode
:One label created:
Two labels created:
Example with a stock item template I made. These use the same template, but in one I call:
Output with one single label:
Output with multiple labels:
The fact that some lines are missing is not a problem, that is due to the template. However, where is the spacing from?
Steps to Reproduce
Expected behavior
The output should look the same regardless of whether I create multiple labels at once or not.
Deployment Method
Version Information
Version Information:
InvenTree-Version: 0.9.0 dev
Django Version: 3.2.15
Commit Hash: 139e059
Commit Date: 2022-08-10
Database: postgresql
Debug-Mode: True
Deployed using Docker: True
Active plugins: []
Relevant log output
No response
The text was updated successfully, but these errors were encountered: