Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #268256

Re: printing QR-codes on labels with 300dpi label printers with LaTeX

From jeremy ardley <jeremy.ardley@gmail.com>
Newsgroups linux.debian.user
Subject Re: printing QR-codes on labels with 300dpi label printers with LaTeX
Date 2024-03-14 10:50 +0100
Message-ID <IhPSN-gCtk-7@gated-at.bofh.it> (permalink)
References (7 earlier) <IgD7j-fOCf-3@gated-at.bofh.it> <IgD7j-fOCf-1@gated-at.bofh.it> <Ihgs1-gcPd-3@gated-at.bofh.it> <Ihgs1-gcPd-1@gated-at.bofh.it> <IhPSN-gCtk-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 14/3/24 06:59, hw wrote:
>> Manufacturers can provide CUPS drivers as well, but the barcode
>> application is usually only windows.
>>
>> In my case I had to write my own CUPS driver as the manufacturer does
>> not provide one.
> How did you do that?

It is simply a C program that gets given some parameters and a bitmap by 
CUPS

The program processes the bitmap and frames it with printer commands to 
place the bitmap on the printer page.

CUPS abstracts the actual device interface (in my case USB). But in 
development I wrote the code to send commands directly to the USB device

>
>> Getting back to pixel registration, the latex CUPS route is very
>> unlikely to work well.
> It's working great here since years.  Barcodes are no problem, only qr
> codes can't be scanned.


This surprises me greatly. 2D codes have very large features compared to 
barcodes. They should be relatively immune to pixel quantization.

For reference on a 203 DPI (8 dots per mm) printer, a GS1-128 barcode 
takes up 12 modules per character. The minimum size of a module is 1 
pixel so 1 character is 12 pixels wide or 1.2mm on a 203 dpi printer.

Assuming a 40 character barcode at 1 pixel per module, it will span 48mm.

However it is very unusual to have 1 pixel per module. Instead at 2 
pixels per module the barcode is 96mm and at 3 pixels it will be 144mm

With the barcode you have no leeway in the pixel sizes. You must have it 
exact to scan.

In comparison, a QR code typically will have modules 8 pixels square and 
typically is 26x26 or 32x32 pixels. At 26x26  the printed code is 26mm 
square at 203dpi. You can afford to be out by a pixel at those dimensions.

If you have problems scanning QR codes at those sizes perhaps your QR 
codes are invalid to start with? If you print them out really large will 
they scan?

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

libbusiness-us-usps-webtools-perl and USPS Ground Advantage shipping Jeffrey Walton <noloader@gmail.com> - 2024-03-08 05:20 +0100
  Re: libbusiness-us-usps-webtools-perl and USPS Ground Advantage  shipping gene heskett <gheskett@shentel.net> - 2024-03-08 11:30 +0100
  Re: libbusiness-us-usps-webtools-perl and USPS Ground Advantage  shipping Charles Curley <charlescurley@charlescurley.com> - 2024-03-08 16:20 +0100
    Re: libbusiness-us-usps-webtools-perl and USPS Ground Advantage shipping Jeffrey Walton <noloader@gmail.com> - 2024-03-08 16:40 +0100
  Re: libbusiness-us-usps-webtools-perl and USPS Ground Advantage  shipping Max Nikulin <manikulin@gmail.com> - 2024-03-08 17:30 +0100
    Re: printing QR-codes on labels with 300dpi label printers with LaTeX Max Nikulin <manikulin@gmail.com> - 2024-03-09 17:30 +0100
      Re: printing QR-codes on labels with 300dpi label printers with LaTeX jeremy ardley <jeremy.ardley@gmail.com> - 2024-03-09 21:50 +0100
        Re: printing QR-codes on labels with 300dpi label printers with LaTeX Max Nikulin <manikulin@gmail.com> - 2024-03-10 04:30 +0100
          Re: printing QR-codes on labels with 300dpi label printers with LaTeX jeremy ardley <jeremy.ardley@gmail.com> - 2024-03-10 05:00 +0100
            Re: printing QR-codes on labels with 300dpi label printers with LaTeX Max Nikulin <manikulin@gmail.com> - 2024-03-10 08:50 +0100
              Re: printing QR-codes on labels with 300dpi label printers with LaTeX jeremy ardley <jeremy.ardley@gmail.com> - 2024-03-10 09:20 +0100
      Re: printing QR-codes on labels with 300dpi label printers with LaTeX jeremy ardley <jeremy.ardley@gmail.com> - 2024-03-10 01:00 +0100
        Re: printing QR-codes on labels with 300dpi label printers with LaTeX jeremy ardley <jeremy.ardley@gmail.com> - 2024-03-11 03:00 +0100
          Re: printing QR-codes on labels with 300dpi label printers with LaTeX jeremy ardley <jeremy.ardley@gmail.com> - 2024-03-12 21:00 +0100
            Re: printing QR-codes on labels with 300dpi label printers with LaTeX Max Nikulin <manikulin@gmail.com> - 2024-03-13 18:00 +0100
            Re: printing QR-codes on labels with 300dpi label printers with LaTeX jeremy ardley <jeremy.ardley@gmail.com> - 2024-03-14 10:50 +0100
              Re: printing QR-codes on labels with 300dpi label printers with LaTeX jeremy ardley <jeremy.ardley@gmail.com> - 2024-03-14 11:00 +0100
      Re: printing QR-codes on labels with 300dpi label printers with LaTeX Max Nikulin <manikulin@gmail.com> - 2024-03-10 04:00 +0100
        Re: printing QR-codes on labels with 300dpi label printers with LaTeX Florent Rougon <f.rougon@free.fr> - 2024-03-11 12:00 +0100
          Re: printing QR-codes on labels with 300dpi label printers with LaTeX Florent Rougon <f.rougon@free.fr> - 2024-03-13 11:40 +0100
            Re: printing QR-codes on labels with 300dpi label printers with LaTeX Florent Rougon <f.rougon@free.fr> - 2024-03-13 17:10 +0100
        Re: printing QR-codes on labels with 300dpi label printers with LaTeX Max Nikulin <manikulin@gmail.com> - 2024-03-11 17:50 +0100
          Re: printing QR-codes on labels with 300dpi label printers with LaTeX Max Nikulin <manikulin@gmail.com> - 2024-03-19 17:10 +0100
            Re: printing QR-codes on labels with 300dpi label printers with LaTeX "Thomas Schmitt" <scdbackup@gmx.net> - 2024-03-19 20:00 +0100
              Re: printing QR-codes on labels with 300dpi label printers with LaTeX Max Nikulin <manikulin@gmail.com> - 2024-03-20 18:00 +0100
                Re: printing QR-codes on labels with 300dpi label printers with LaTeX "Thomas Schmitt" <scdbackup@gmx.net> - 2024-03-20 18:40 +0100

csiph-web