py-pdf / fpdf2

Simple PDF generation for Python
https://py-pdf.github.io/fpdf2/
GNU Lesser General Public License v3.0
1.11k stars 251 forks source link

New feature: render text with a given shape #245

Open Lucas-C opened 3 years ago

Lucas-C commented 3 years ago

In HTML, some CSS & SVG capabilities allow to render text in the form of a given shape: shape-outside

Related documentation:

By implementing this feature you, as a benevolent FLOSS developper, will provide access to the large community of fpdf2 users to a standard and useful PDF functionality. Moreover, by working on this feature, you will learn about PDFs encryption and the lifecycle & structure of a popular Python library. You will also be added into the contributors list & map.

In terms of API / library interface, a method could be added to fpdf2.FPDF that would provide such feature. The new classes & utilities in fpdf.drawing could be of some use here, cf. https://github.com/PyFPDF/fpdf2/pull/196

This is just a starting point though: as a contributor you will be free to design and craft this feature as you see best, while getting review feedbacks from maintainers & other contributors.

This issue can count as part of hacktoberfest

Lucas-C commented 3 years ago

Inspiration could also be taken from HexaPDF