'Generate PDF with Acroform using weasyprint

I use weasyprint to generate a PDF file from a HTML file in a Python application (I use yattag for the HTML generation if this may help).

I would like to use AcroForms, which enable the recipient of the document to fill out certain fields (also referred to as PDF forms, see per example: https://talkingpdf.org/tag/acroforms/)

I did not find anything the the documentation of weasyprint to include an element (like a form field in the HTML field) that would be turned into a PDF fillable field. How could I achieve this ?

Edit: after more research, I found the following git issue : https://github.com/Kozea/WeasyPrint/issues/61 but it does not seem that the feature has been implemented in weasyprint so far.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source