{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/2"},{"label":"Text Processing","url":"https://skillfed.io/packages/category/text-processing"},{"label":"Multimedia","url":"https://skillfed.io/packages/category/multimedia"},{"label":"Markup","url":"https://skillfed.io/packages/category/text-processing-markup"},{"label":"Documentation","url":"https://skillfed.io/packages/category/documentation"},{"label":"Office/Business","url":"https://skillfed.io/packages/category/office-business"},{"label":"HTML","url":"https://skillfed.io/packages/category/text-processing-markup-html"},{"label":"General","url":"https://skillfed.io/packages/category/text-processing-general"},{"label":"Filters","url":"https://skillfed.io/packages/category/text-processing-filters"},{"label":"XML","url":"https://skillfed.io/packages/category/text-processing-markup-xml"},{"label":"Indexing","url":"https://skillfed.io/packages/category/text-processing-indexing"},{"label":"Printing","url":"https://skillfed.io/packages/category/printing"},{"label":"Fonts","url":"https://skillfed.io/packages/category/text-processing-fonts"}],"enrichment":{"capability":"Converts HTML and CSS to PDF documents using Python, enabling developers with web skills to generate PDF templates without learning specialized PDF libraries.","skillfed_tags":["pdf-generation","html-rendering","document-automation"],"use_cases":["Generate invoice or receipt PDFs from web templates without duplicating design logic between HTML and PDF systems.","Build report generators that accept HTML input and produce downloadable PDF files for distribution.","Create multilingual PDF documents with proper text directionality and script handling for Arabic and bidirectional content.","Embed SVG graphics and images in PDF output while maintaining CSS styling from the source HTML.","Automate PDF certificate or document generation in web applications by reusing existing HTML/CSS templates."],"what_it_does":"xhtml2pdf is a pure-Python HTML-to-PDF converter that wraps reportlab, html5lib, and pypdf to turn HTML5 and CSS 2.1 markup into PDF documents. It lets developers who know HTML and CSS generate PDF templates without learning a specialized PDF library or adopting a different technology stack. The tool is platform-independent and installs as a standard Python package.\n\nThe package handles the full pipeline: parsing HTML5 with html5lib, applying CSS styling, rendering text and images via reportlab (which requires a system graphics backend like cairo), and assembling the final PDF. It also integrates pyHanko for PDF signing, python-bidi for right-to-left text, arabic-reshaper for Arabic script support, and svglib for SVG embedding, making it suitable for multilingual and complex document layouts.","worth_installing":"Yes, if you need to convert HTML/CSS to PDF and want to avoid learning a specialized PDF library. The permissive Apache 2.0 license and low install friction make it accessible. However, the aging maintenance status (last release 537 days ago) warrants caution in production: verify that its rendering quality and feature set meet your specific layout and CSS requirements before committing to it as a core dependency. No known security vulnerabilities as of the fact sheet date."},"id":"xhtml2pdf","links":{"html":"https://skillfed.io/packages/xhtml2pdf","md":"https://skillfed.io/packages/xhtml2pdf.md","pypi":"https://pypi.org/project/xhtml2pdf/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-02-23","license_spdx":null,"license_treatment":"permissive","name":"xhtml2pdf","python_support":"supports_current","summary":"PDF generator using HTML and CSS"},"popularity":{"monthly_downloads":4345363,"position":2326,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.2.17"}
