-
Notifications
You must be signed in to change notification settings - Fork 259
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
Implement FPDF.table() - close #701 & #723 #703
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #703 +/- ##
==========================================
+ Coverage 93.18% 93.20% +0.01%
==========================================
Files 26 27 +1
Lines 7120 7252 +132
Branches 1272 1315 +43
==========================================
+ Hits 6635 6759 +124
- Misses 301 309 +8
Partials 184 184
... and 6 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
fc2c0b3
to
70d192b
Compare
d21efd0
to
bafe5c1
Compare
Documentation preview: https://github.com/PyFPDF/fpdf2/blob/table/docs/Tables.md |
This PR is almost ready. Ping @gmischler, @eroux, @erap129, @Bubbu0129, @RedShy, @andersonhc, @NikhilExactSpace, @eabase, @JianDk, @RubendeBruin : you are all regular I'd be very happy to have your feedback on this new method: are you OK with the behaviour of the You can test the code by installing
I'm mainly looking for feedback on the API, but code reviews are also very welcome 😊 |
thanks, impressive PR! I must say I'm almost only focused on images for my project (as you probably noticed!) and I've never really used that kind of API (except in TeX an eternity ago... for this project), so I don't feel I have very insightful or relevant comments |
That's what I get for letting the topic sit for so long and not turn it into a draft PR from the start... In TextRegion, I have started to implement my ideas as outlined in #339. As far as I have seen yet, your approach is not fundamentally different from mine, at least on the surface, so it might be possible to integrate the two with reasonable effort. Sorry to barge in so large in your progress, but I think a more general approach to text layout is much more useful in the long run. So I'd recommend to keep this on hold for the moment. To the very least we should try to come up with a common API strategy and naming convention, so that integrating the two approaches later doesn't unnecessarily break backwards compatibility. I'll turn my own code into a PR asap, so we can compare the concepts next to each other and others can chime in as well. |
Alright, no worries @eroux, thanks for taking the time to post this comment 😊 |
Alright @gmischler, I can wait for your PR for a few weeks before merging this 😊 The
In what way does your work in TextRegion would have an impact? Also, I think your work does not question the addition of a |
Thanks for the ping. Impressive piece of work! The current API completely covers my current use and I really like the possibility of adding images. |
8c730bd
to
843a091
Compare
720cecc
to
6b2d152
Compare
Features
Work-in-progress implementation status:
colspan
)fpdf/html.py
by a call to this newFPDF.table()
methodAlso, do not forget:
docs/Tables/md
update +table_with_cells.pdf
example indocs/Maths.md
CHANGELOG.md