-
Notifications
You must be signed in to change notification settings - Fork 260
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
Doc: provide an usage example of combining fpdf2 with python-barcode #720
Comments
I would like to work on this project.✔ |
Hi and welcome @shindodkar! The first step to work on thi would be to read the Development guidelines. Regarding this task, the goal will be to submit a Pull Request:
This PR will be an update of the Markdown file https://github.com/PyFPDF/fpdf2/blob/master/docs/Barcodes.md. Of course, prior to this Pull Request, you will have to experiment yourself on how to do such thing 😄 Also: No such thing as a stupid question: feel free to ask anything there if things are unclear! |
Hi @shindodkar I see that you are requesting help from other contributors:
Could you please wait for those users to answer before posting any more comments on this repo? Also, I would advise to:
|
Hi @Lucas-C . How are you doing?
Please correct me if I am wrong till now. What I have understood by reading this issue is Am I correct? Thank You. |
Yes, you are right 😊
As can be seen on the page https://python-barcode.readthedocs.io/en/stable/getting-started.html#usage
What I meant is simply that the |
Hello @Lucas-C , Thank you for the reply. I was trying to create a snippet that may fix this issue. However, before that, I tried the following snippet -
from this example that converts an SVG image (
Is there anything I need to apply before running this snippet? Is this a Bug? However, I tried the following snippet -
It worked fine. And I have successfully created a PDF named Thanks. |
You did everything fine 😊
What matters in the content of the This error comes from here: https://github.com/PyFPDF/fpdf2/blob/2.7.1/fpdf/svg.py#L114 |
@Lucas-C I have created this file using the below snippet -
|
Thank you, I'll have a look at it this evening! 😊 |
Hi @Lucas-C , OK. Please let me know. Can
However, will it be OK? |
I fixed the You can check that your last code snippet now works (the one with the call to
|
Thanks for the Quick fix @Lucas-C , Works fine. Except for the following warning - However, I have created the 128 Barcode PDF using Thank You. |
Please just add a mention of this additon in the doc to |
@Lucas-C Thank You. I will do it by tonight. |
@Lucas-C , with these small contributions, I would like to contribute features/resolve bugs in the Codebase as well. What are the relevant knowledge and learnings I should gather in case of contributing to including new features and/or resolving bugs? Thank You. |
Most information is on https://pyfpdf.github.io/fpdf2/Development.html I also gave some general advice there: #496 (comment) |
Thank You @Lucas-C . |
Why not, this seems like a good idea to me 😊 |
@Lucas-C , I will be more than happy to do this. It may take some time. Can you give me an idea of which sort of things I need to take care of to stack up things in the |
Thanks to @ssavi-ict, a documentation section has now been added: A bugfix was spotted in the process of redacting this documentation section, |
We already have a page about Barcodes in our documentation.
It was recently reported that we don't support code 128 barcodes: #719
python-barcode seems like a great library that can produces images for many barcode formats, using Pillow.
It would be interesting to provide a documentation section on how to generate barcodes with
python-barcode
and embed them in PDFs usingfpdf2
. Priority should be given to documenting how to insert them as SVG, as it will produce smaller PDF documents thant embedding barcodes as rater images.By implementing this feature you, as a benevolent FLOSS developper, will provide access to the large community of fpdf2 users to a useful PDF functionality.
As a contributor you will get review feedbacks from maintainers & other contributors, and learn about the lifecycle & structure of a Python library on the way.
You will also be added into the contributors list & map.
This issue can count as part of hacktoberfest
The text was updated successfully, but these errors were encountered: