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

Add support for C39 in templates #170

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

rkowalski4
Copy link

This pull request adds support for barcode following C39 in templates (BCC39). It also extends an interface to be consistent with barcodes in template - I25 (BCI25) is explicitly added which call the same function as BC. BC is not changed to provide backwards compatibility.

This pull request also introduces a change in code39 method from FPDF class (responsible for barcode generation following C39 standard). Since now, it is not required to escape text on your own (adding '*' at the beginning and at the end of the string). This change does not provide backwards compatibility.

Rafał Kowalski added 4 commits November 5, 2020 13:17
This commit adds extra template handlers: BCC39 and BCI25. First generetes BCC39 barcode. Second one is added to keep API consistency and call BC under the hood
@alexanderankin
Copy link

if its possible for you to pr this against https://github.com/alexanderankin/pyfpdf/issues then i may release it as i am maintaining fpdf2

@Lucas-C
Copy link

Lucas-C commented Jan 3, 2021

That's nice how you added documentation on code39 & interleaved2of5 methods!

I second @alexanderankin suggestion: could you please submit this PR against his fork (which is fpdf2 on Pypi) and we'll merge it.

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

Successfully merging this pull request may close these issues.

3 participants