awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
Kozea avatar

Kozea/WeasyPrint

0
View on GitHub↗
9,288 stars·829 forks·Python·BSD-3-Clause·18 viewsweasyprint.org↗

WeasyPrint

WeasyPrint is a Python-based library and layout engine that converts HTML and CSS into printable PDF documents. It functions as a CSS paged media engine, translating web technologies into formatted files for automated document generation.

The project implements CSS standards for print and paginated documents, allowing for the design of layouts specifically for printed pages. This includes a specialized pagination engine used to control page breaks, headers, and footers to create professional PDF outputs.

Its capability surface covers server-side PDF rendering and the programmatic conversion of HTML templates into printable reports and invoices. The engine manages the process from parsing style rules and building a document tree to calculating the final box model and rendering the resulting PDF.

Features

  • HTML to PDF Converters - Transforms HTML and CSS layouts into professional portable document format (PDF) files.
  • Python - Provides a Python-based programmatic interface for generating PDF files from web technologies.
  • PDF Rendering Primitives - Translates calculated layout coordinates into low-level PDF drawing and text placement primitives.
  • Paged Media Implementations - Implements CSS paged media standards to handle specific print requirements like page sizes, margins, and bleed areas.
  • Print Pagination Engines - Provides a specialized engine to split continuous web layouts into discrete printable pages with repeating headers and footers.
  • Paged Media Layout Engines - Functions as a specialized layout engine that implements CSS standards for print and paginated documents.
  • CSS Box Model Renderers - Calculates element dimensions and positions using the CSS box model to map styling rules onto a printable page.
  • Server-Side PDF Rendering - Generates PDF documents on the server using HTML and CSS instead of manual coordinate drawing.
  • Document Generation - Automates the production of printable reports and invoices from structured HTML content.
  • In-Memory DOM Representations - Builds an internal hierarchical tree representation of the HTML document to manage inherited styles and relationships.
  • Print Stylesheets - Utilizes dedicated print stylesheets to optimize web layouts specifically for physical paper output.
  • Style Cascading Engines - Implements the logic for processing and applying CSS style cascades to determine element visual properties.
  • Document and File Processing - Renders HTML and CSS content into PDF documents.
  • Documentation and Processing - Library for converting HTML to PDF.

Star history

Star history chart for kozea/weasyprintStar history chart for kozea/weasyprint

How this analysis was created: This summary and feature list were written by an AI model that read the project's README and public documentation pages. Each feature links to the documentation it came from; stars, license and language come straight from the GitHub API. The model does not read the source code, and the analysis is refreshed when the project is re-analysed. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Open-source alternatives to WeasyPrint

Similar open-source projects, ranked by how many features they share with WeasyPrint.
  • pymupdf/pymupdfpymupdf avatar

    pymupdf/PyMuPDF

    9,086View on GitHub↗

    PyMuPDF is a comprehensive PDF manipulation library and document analysis tool. It serves as a text extraction tool, OCR engine, and image converter, providing a programmatic interface to edit, merge, split, and optimize PDF and Office documents. The project distinguishes itself through high-performance capabilities, including the use of C-bindings for low-level manipulation and parallelized page processing to accelerate workloads. It provides specialized conversion paths, such as transforming PDF content into Markdown for retrieval-augmented generation and large language model pipelines. It

    Pythondata-scienceepubextract-data
    View on GitHub↗9,086
  • mpdf/mpdfmpdf avatar

    mpdf/mpdf

    4,693View on GitHub↗

    mPDF is a PHP library that transforms UTF-8 encoded HTML and CSS into formatted PDF documents. It serves as a PDF generation engine and document architect capable of converting web pages and HTML forms into professional files. The project is distinguished by its multilingual rendering capabilities, providing comprehensive support for bidirectional text, right-to-left scripts, and CJK languages using Unicode font embedding and OpenType layout processing. It further enables professional print-ready design through advanced color modeling in CMYK, precise page dimensioning, and compliance with PD

    PHPcjkcsshtml
    View on GitHub↗4,693
  • bafs/gutenbergBafS avatar

    BafS/Gutenberg

    4,912View on GitHub↗

    Gutenberg is a CSS print formatting framework and web-to-PDF layout engine. It provides a system for managing stylesheets, element visibility, and structural layout rules to ensure web content maintains a consistent visual structure when converted to physical documents or PDF files. The project manages print-specific rendering through a stylesheet manager that filters out non-essential interface elements and prevents the automatic expansion of URLs. It includes utilities to enforce the rendering of background colors and images, which browsers typically strip during the printing process. The

    SCSScsscss-frameworkframework
    View on GitHub↗4,912
  • sphinx-doc/sphinxsphinx-doc avatar

    sphinx-doc/sphinx

    7,678View on GitHub↗

    Sphinx is an extensible documentation framework and multi-format document publisher. It serves as a technical content organizer that converts reStructuredText markup and Python source code comments into structured documentation for technical projects. The system transforms a single set of markup files into multiple output formats, including HTML, LaTeX, EPUB, and Texinfo. It functions as a Python API documentation tool, extracting documentation directly from source code to maintain synchronized technical reference manuals. The framework organizes complex information into hierarchies with aut

    Pythondocsdocumentationdocumentation-tool
    View on GitHub↗7,678
See all 30 alternatives to WeasyPrint→

Frequently asked questions

What does kozea/weasyprint do?

WeasyPrint is a Python-based library and layout engine that converts HTML and CSS into printable PDF documents. It functions as a CSS paged media engine, translating web technologies into formatted files for automated document generation.

What are the main features of kozea/weasyprint?

The main features of kozea/weasyprint are: HTML to PDF Converters, Python, PDF Rendering Primitives, Paged Media Implementations, Print Pagination Engines, Paged Media Layout Engines, CSS Box Model Renderers, Server-Side PDF Rendering.

What are some open-source alternatives to kozea/weasyprint?

Open-source alternatives to kozea/weasyprint include: pymupdf/pymupdf — PyMuPDF is a comprehensive PDF manipulation library and document analysis tool. It serves as a text extraction tool,… mpdf/mpdf — mPDF is a PHP library that transforms UTF-8 encoded HTML and CSS into formatted PDF documents. It serves as a PDF… bafs/gutenberg — Gutenberg is a CSS print formatting framework and web-to-PDF layout engine. It provides a system for managing… sphinx-doc/sphinx — Sphinx is an extensible documentation framework and multi-format document publisher. It serves as a technical content… dompdf/dompdf — Dompdf is a PHP library that functions as a document rendering engine, transforming HTML and CSS markup into portable… microsoft/markitdown — This project is an AI-powered document processing engine designed to transform diverse file formats into structured…