Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AZTEC siez limitation ? #54

Open
karimbakouri opened this issue Mar 17, 2019 · 4 comments
Open

AZTEC siez limitation ? #54

karimbakouri opened this issue Mar 17, 2019 · 4 comments
Labels

Comments

@karimbakouri
Copy link

Hi,
I think i found a strange limitation in the AZTEC barcode. When there is more than 472 chars in the barcode, it is not readable in 33% error code mode :

...
cab2d := "lsdkfmlkfmlkmkmezlkfmlzkfkezfezmfkkljkljkljflmfkelmfklmfezlfkezlmfkzlmefkelfkezlmfezmlflemkflmfklzfelzkflmfkezlmfkezmlfkzefkemzlfkmlezkfmzelfkezmkfelzmfkelzmfkzelmfkezmlfkezlmkflemzfklmezfkelzmfkezmlkfezlfkelmzfkezlmfkezmfkezlmkflmezkfezlmfkezmlfkezmlfklmezkflemzfkzemlkflzmekflzemfkezlmkfezmlfkezlmfkezmlfkezflmkezmlfelmzkfelmzfkzekflemzfklmezfkflmezklmfkezlmfkezlmfkezlfkelzmfkelzmfkezmlfkezlmfkezlmfklzmefkmezlfklmezkflemzkfmlezkfmlezkfezflkzemflkzemlfkzelmfkmelzfkmlz"

keyAztec := barcode.RegisterAztec(pdf, cab2d, 33, 0)
barcode.Barcode(pdf, keyAztec, posX + 87.1, posY + 66.6, 28, 28, false)
...

=> the generated barcode is not readable.
=> if you delete one character and generate it again, it works again.

Please tell me if i made a mistake.

Thank you very much, excuse my poor english :).

@karimbakouri
Copy link
Author

In fact, it seems that the issue happens with a specific value, but i can't tell exactly what data is wrong :

cab2d := "\x1E01\x1D02\x1D0075015\x1D250\x1D801\x1D116A1408809691\x1DGEOP\x1D900138\x1D075\x1Dref sender\x1D001/001\x1D02.00KG\x1DN\x1DADRESSE 3\x1DBEAUVITS\x1D\x1Draison sociale\x1E07\x1DG03\x1D0\x1D0\x1D1\x1D\x1FSOCIETE PRENOM DESTINATAIRE\x1FSOCIETE PRENOM DESTINATAIRE\x1F0628840107\x1F\x1F0628840107\[email protected]\x1F\x1FADRESSE 1\x1FADRESSE 2\x1DB\x1D002.00KG\x1DSOCIETE\x1DNOM EXPEDITEUR PRENOM EXPEDITEUR\x1Dref sender\x1D\x1D\x1D\x1D\x1D\x1D\x1E07\x1DS010\x1DSOCIETE\x1F0677777777\x1FSOCIETE PRENOM DESTINATAIREADRESSE 3ADRESSE 1\x1FPARIS\x1F75015\x1F250\x1E"

keyAztec := barcode.RegisterAztec(pdf, cab2d, 33, 0)
barcode.Barcode(pdf, keyAztec, posX + 87.1, posY + 66.6, 28, 28, false)

@boombuler
Copy link
Owner

Could you try a different reader? I guess it's either a problem with the reader or the generated checksum is wrong :( I'll have a look at it in a few days.

@karimbakouri
Copy link
Author

Indeed, i changed a few characters in the data, and then it worked. It seems to be a problem of checksum. I hope you'll manage to fix this. Please tell me if you need more tests.
Thank you for your work, the library is great !

@karimbakouri
Copy link
Author

It seems that the issue is tied to the error correction level algorithm too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants