Can't get labels to print as PDF #4036
-
Hello, I cannot work out how to make stock location labels generate as PDFs. I've made some slight changes to the template HTML file, uploaded it in the admin interface and tested it in a browser and it works just fine as HTML. But I just can't seem to get my desktop browser (Chrome) to offer to download it as a PDF. Version Information:InvenTree-Version: 0.9.0 dev This is what I have in the admin interface under Label > Stock location labels: The label preview I'm getting in my browser: This is the code used to generate the label. Basically the same as the example, just with a few minor layout changes:
Do I need to enable a specific plugin to make this work? Thanks for reading! Chris |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
There is a setting for a "debug" mode for reports which gives you HTML output instead of PDF. It applies to labels as well: Check this setting. You may need to reload/empty your cache if it doesn't change. |
Beta Was this translation helpful? Give feedback.
There is a setting for a "debug" mode for reports which gives you HTML output instead of PDF. It applies to labels as well:
Check this setting. You may need to reload/empty your cache if it doesn't change.