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

Datamatrix barcode size #35

Closed
IanLea opened this issue Mar 1, 2018 · 3 comments
Closed

Datamatrix barcode size #35

IanLea opened this issue Mar 1, 2018 · 3 comments

Comments

@IanLea
Copy link

IanLea commented Mar 1, 2018

Hi

I'm trying to create a datamatrix barcode that meets the following spec:

The Royal Mail 2D barcode is a Complex Mail Data Mark (CMDM) barcode. It has the
specified format of a Data Matrix type ECC200 code complying with the international
standard ISO/IEC 16022, version 2006. It must be produced as a type 12 barcode with
following key characteristics
• Barcode Size: 44 x 44 modules
• Module Size: 0.5mm - 0.7mm
• Physical Size: 22mm x 22mm - 30.8mm x 30.8mm
• Total Capacity (with C40 encoding): 213 characters

and it's working fine except that for a typical 204 character input string, it is generating a 52x52 or 48x48 barcode and not 44x44.

I'm way out of my depth here but suspect that the C40 encoding might be the problem.
Does this package support C40 encoding or am I barking up the wrong tree?

Any guidance would be much appreciated.

--
Ian.

@boombuler
Copy link
Owner

Hi,

you are right there is currently no C40 encoding. Only ASCII...

It would require an replacement for encodeText. If you want to help with this let me know otherwise it might take some time till I have time to implement this...

Regards
Florian

@IanLea
Copy link
Author

IanLea commented Mar 2, 2018

Thanks Florian. I've written an encodeC40 method which appears to be working, subject to confirmation from Royal Mail. Happy to share that with you however you wish.

--
Ian.

@boombuler
Copy link
Owner

Would be happy if you would contribute it to the project because it may help other people.

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

No branches or pull requests

2 participants