tmaier / asn-qr-code-label-generator

QR Code Label Generator for ASNs in Paperless-ngx
https://tobiasmaier.info/asn-qr-code-label-generator/
GNU Affero General Public License v3.0
45 stars 26 forks source link

Added support for Avery 3666 labels #7

Open jfrcom opened 4 months ago

jfrcom commented 4 months ago

Thanks for your work on the label template. As I had Avery 3666 labels lying around, I added support for those.

tmaier commented 4 months ago

I think to support multiple labels properly, we need to refactor this a bit more.

I think we would need to create an object, which describes the key dimensions of each label, like margin from page border, width, height, number of rows, number of columns, vertical/horizontal margin between labels.

jfrcom commented 4 months ago

Totally on the same page with you. Honestly, my first go was just a quick and dirty job because I needed those labels printed. I've gone back to the drawing board and refactored the code once more. Alpine.js is new territory for me, so if you've got any pointers on how to do things better, let me know.