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

How can I generate codabar barcode and with different size? #7

Open
halink0803 opened this issue Apr 26, 2017 · 3 comments
Open

How can I generate codabar barcode and with different size? #7

halink0803 opened this issue Apr 26, 2017 · 3 comments

Comments

@halink0803
Copy link

halink0803 commented Apr 26, 2017

I follow the example file and run the "ean13" correct but cannot make the codabar run correctly. Can you provide an instruction for each barcode type?

@lolliffe
Copy link

I've also tried it with code 39, and several others, the only luck I've had, was with the included example.py file.

@halink0803
Copy link
Author

@lolliffe It seems this project is not maintain anymore, you should try finding another tool for that task.

@ahallrq
Copy link

ahallrq commented Jan 11, 2018

@halink0803 Unfortunately even when it was maintained the maintainer didn't respond to issues or PRs.

That said to answer your question I had to call upcean.oopfuncs.barcode() manually with the type (simply "codabar") and text. I believe for codabar you'd need a variable length text optionally with "A", "B", "C", or "D" at the start or end.

Possible example:

image = upcean.oopfuncs.barcode("codabar", "A1234567890B").draw_barcode(2)
image.save("/path/to/an/image")

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

3 participants