huysentruitw / barcoder

Lightweight Barcode Encoding Library for .NET Framework, .NET Standard and .NET Core.
MIT License
158 stars 37 forks source link

DataMatrix with multiple extents? #46

Open shadowfoxish opened 3 months ago

shadowfoxish commented 3 months ago

Does this library support creating datamatrix barcodes that have multiple segments?

One labeling software I've seen called this "structured append".

image

I was able to get it to generate a barcode in this layout, but its restricted in size. Is it possible to automatically lengthen the CodeSize? For example, if I call DataMatrixEncoder.Encode(content, 16, 48, false); and it realizes there aren't enough segments to stuff the content in, it would just arbitrarily add more. It currently errors.

shadowfoxish commented 3 months ago

Nevermind. I think I misunderstood what structured append actually was. It strings together discrete matricies with some special characters. Seems though, that the code does not find the rectangular CodeSizes, so maybe I can make a pull request to add a parameter that preferentially selects the rectangular layout over the square layout.