asn-qr-code-label-generator icon indicating copy to clipboard operation
asn-qr-code-label-generator copied to clipboard

Feedback / hint if not working

Open michaelehlers opened this issue 1 year ago • 4 comments

Hey @tmaier,

Thanks a lot for that work. Did use the code to generate asn labels for paperless import. Had some issues though. Had slight offset of approx 1mm fir the first row that cumulated to 2 mm on the last row. Maybe my brother printer?

If someone has similar problems:

Fixed it by changing py of container to 12.5 and adding a py of 0.4 for LI elements.

Also had problems paperless not being able to read the codes even on 600 ppi and

PAPERLESS_CONSUMER_BARCODE_UPSCALE=2 and PAPERLESS_CONSUMER_BARCODE_DPI=600.

What solved the problem was calling the googleapi with chld=Q|0.

Now scanning with 300 ppi, upscale 1.5 and works like charm.

Again thanks a lot 😉

michaelehlers avatar Jan 06 '24 22:01 michaelehlers

Hi @michaelehlers,

thanks for the tips. I had the same problems with my printer (Brother MFC-L2750DW). For anyone else here are the changes i made to index.html:

py 12.5: https://github.com/tmaier/asn-qr-code-label-generator/blob/eb1d4fb197b3e2ef69607918d01f768ed3830f5f/index.html#L197C7-L197C115: class="container mx-auto w-[210mm] border px-[9mm] py-[12.5mm] print:w-full print:max-w-full print:border-0"

p 0.4: https://github.com/tmaier/asn-qr-code-label-generator/blob/eb1d4fb197b3e2ef69607918d01f768ed3830f5f/index.html#L203C70-L203C70: class="flex h-[10mm] w-[25.4mm] items-center border-[0.5mm] p-[0.4mm] odd:border-blue-500 even:border-red-300" I wasn't sure about the border value here, so I didn't change it and it works for me.

I also had to install the printer drivers from Brother. Windows just recognizes the printer over the network and I can use it without setting it up. But it didn't matter which printer settings I applied in either browser or system print dialog the page would always be printed somewhat shrinked. Only after installing the printer with the driver from Brother the scaling and border settings work. In the end I used the system print dialog and set the options in the Brother printer settings for the label printout.

And @tmaier, thank you for this tool :)

qezzo avatar Jan 09 '24 09:01 qezzo

Hi @qezzo and @michaelehlers ,

thanks for your feedback.

Pull requests I would appreciate a pull request with your changes, as this makes it easier to follow which changes to make exactly. You can do this with a click on "edit" here in Github.

Printer drivers, shrinking I Would be very interested to understand what can be attributed to printer issues, e.g. a too wide margin to the border and what can be attributed to having the wrong values here in the tool.

Can you print the page with borders activated, take a ruler and measure the margin between the paper and the first boxes? Consider to scan it in.

Positioning of container / boxes @michaelehlers you mentioned that you added some padding (py) to the container and the List-elements. Can you check if you find a source, which describes what that spacing should be? I need to understand again, if this is a printer issue or if this is because I set the space between the labels or the size of the labels wrong.

tmaier avatar Jan 09 '24 11:01 tmaier

Thanks so much @qezzo @michaelehlers this fixed the very same issue with my Brother HLL2350DW!

sebw avatar Feb 28 '24 21:02 sebw

@sebw could you open a pull request with your changes?

tmaier avatar Feb 28 '24 22:02 tmaier