Zebra ZPL templates and rendering inside the printer #8660
Replies: 2 comments 3 replies
-
@SergeoLacruz you are really making some advances with your plugins :) |
Beta Was this translation helpful? Give feedback.
-
That’s very nice, you might want to take a look into custom previews in the template editor for easier editing? That would be a beautify use case for the custom previews feature. https://docs.inventree.org/en/latest/extend/plugins/ui/#template-previews (We might want to look into adding some meta comments to a file to determine which editor/preview to use by default) I think I remember there is a zpl rendering library for js into a canvas available. |
Beta Was this translation helpful? Give feedback.
-
I love InvenTree :-) So many possibilities...
The https://github.com/SergeoLacruz/inventree-zebra-plugin can now let the printer do the rendering without any
additional templates files needed on the server. You can upload a ZPL template as usual to InvenTree and add some
metadata to the template. The driver will handle this in a different way and ignore the WeasyPrint output. Instead it will
load the template, replace the context variables and send the result to the printer.
One major advantage is better quality especially on QR codes. Even with correct scaling we sometimes had trouble with
this especially on older printers.
Please have a look and give comments if you find something odd.
Michael
Beta Was this translation helpful? Give feedback.
All reactions