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

UPC/UPCA final output doesn't include guard bars #179

Open
logikonabstractions opened this issue Oct 26, 2022 · 1 comment
Open

UPC/UPCA final output doesn't include guard bars #179

logikonabstractions opened this issue Oct 26, 2022 · 1 comment

Comments

@logikonabstractions
Copy link

logikonabstractions commented Oct 26, 2022

I'm being told (not a barcode format specialist) that the standard presentation for a UPC/UPCA code should look like this:

image

If I generate this barcode using the following code however, I get this:

image

Issues:

Added "F" at the end?

Any way to turn this off?

Guardbars not displayed

As I seem to understand, the standard/typical presentation for those code should include guardbars. I tried adding the "guardbars" keywords but it seems the UPC class doesn't accept that argument.

Code:

python-barcode create 686254053919 upc

Also generated as part of a server-side rendering, with same result:

UPCA(str(value["code"]), writer=SVGWriter(), guardbars=True).write(file)

@WhyNotHugo
Copy link
Owner

I tried adding the "guardbars" keywords but it seems the UPC class doesn't accept that argument.

Indeed, it's not implemented for that class. Patches welcome.

Added "F" at the end?

This still scans correctly right, it merely should be excluded from the text, right?

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