{"library":"xhtml2pdf","type":"library","category":null,"description":"xhtml2pdf is an active Python library that converts HTML and CSS into PDF documents, leveraging the ReportLab Toolkit, html5lib, and pypdf. It supports HTML5 and CSS 2.1 (with some CSS 3), offering a platform-independent solution for generating PDFs from web content. The project maintains a regular release cadence, with the current version being 0.2.17.","language":"python","status":"active","version":"0.2.17","tags":["pdf-generation","html-to-pdf","css-to-pdf","reporting","document-generation"],"last_verified":"Thu May 21","install":[{"cmd":"pip install xhtml2pdf","imports":["from xhtml2pdf import pisa"]},{"cmd":"pip install xhtml2pdf[pycairo]","imports":[]}],"homepage":null,"github":"https://github.com/xhtml2pdf/xhtml2pdf","docs":"https://xhtml2pdf.readthedocs.io/","changelog":"https://xhtml2pdf.readthedocs.io/en/latest/release-notes.html","pypi":"https://pypi.org/project/xhtml2pdf/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"3.10–3.9","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/xhtml2pdf/compatibility"}}