jimevins / glabels-qt

gLabels Label Designer (Qt/C++)

Home Page:http://glabels.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

QRCode object can not be resized to fit in the template | Functionality to provide variables for all sides via cli

ichetanbhatt opened this issue · comments

1: Is there a way to reduce QrCode object size below (1.438 X 1.438)inches in gLabels?
My each label size is 2x1 inches, and it won't be able to fit in the sticker width.

2: My page layout is two stickers each side, I couldn't find a way to feed in the 2 values for the same key via CLI. This will be required as both sides will have different unique values.

My template Specifics
glables1

glables2

glables3

I just pushed bd92e6f, which should solve your minimum size issue.

I see two methods to accomplish what you want:

  1. Use document merge. Create a simple CSV file, one record per line, and point your glabels project at this file and overwrite this file from your script.

  2. Since you are creating your own product template, you can actually treat the pair of labels as a single label in your template. If you feel comfortable creating the template by hand, you can actually add your own markup (i.e. a dividing line between the labels). See https://github.com/jimevins/glabels-qt/blob/master/docs/PRODUCT-TEMPLATES.md.

BTW, I see you are doing a continuous roll template. I have had differing success with different label printers. I would be interested in what printer and media you are using and if you encountered any issues.

Thanks @jimevins for the quick commit, I did a test print with this new fix.
I was able to go as low as 9.13 inches with QREncode on windows build.
The Linux build had an additional option for Zint, using that I assume we can even go smaller than 9.13 inches.

1: Multiple templates will then have multiple .csv files, which will get unmanageable at some point in time via script. But this is a good workaround to get the job done. I will try to come up with some sort of implementation using this.

2: I was thinking of this very same approach, create a template for multiple stickers per line, assign different variables to all the data points on the template and then just pass them via CLI.

I would like to explain the business use-case for my requirements, which can inturn help gLabels becoming more amazing tool. Will you be interested in that, I will create a new PR and explain it briefly. (new PR so others get it easy to find via search).

I would definitely like to hear real-world use cases. Please do. Thanks.