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

Do not print text under the barcode? #15

Open
vindarel opened this issue Dec 15, 2022 · 0 comments
Open

Do not print text under the barcode? #15

vindarel opened this issue Dec 15, 2022 · 0 comments

Comments

@vindarel
Copy link

Hi people watching this repo,

Do you know how to not print the EAN code under the barcode?

In base.py, the default writer options have a

        'write_text': True,

how can we pass a new option to the SVG writer?

I use the lib by instantiating a new EAN object and calling save:

                ean = EAN(ean)
                filename = ean.save(fp.name)  # to svg 

looks like we can pass a writer kw to EAN(), but how to give it another option?

My goal is to reduce the vertical size of the SVGs. I'd accept tips to generate a SVG with a minor height too.

Thanks.

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

1 participant