
WeasyPrint
CLIRendering engine that lays out HTML and CSS and exports PDF, supporting paged media and other print style standards, ideal for generating reports, invoices and receipts in bulk. Written in Python; depends on the system Pango library.
The Awesome Document Factory
WeasyPrint is a smart solution helping web developers to create PDF documents. It turns simple HTML pages into gorgeous statistical reports, invoices, tickets…
From a technical point of view, WeasyPrint is a visual rendering engine for HTML and CSS that can export to PDF. It aims to support web standards for printing. WeasyPrint is free software made available under a BSD license.
It is based on various libraries but not on a full rendering engine like WebKit or Gecko. The CSS layout engine is written in Python, designed for pagination, and meant to be easy to hack on.
- Free software: BSD license
- For Python 3.11+, tested on CPython and PyPy
- Documentation: https://doc.courtbouillon.org/weasyprint
- Examples: https://weasyprint.org/#samples
- Changelog: https://github.com/Kozea/WeasyPrint/releases
- Code, issues, tests: https://github.com/Kozea/WeasyPrint
- Code of conduct: https://www.courtbouillon.org/code-of-conduct
- Professional support: https://www.courtbouillon.org
- Donation: https://opencollective.com/courtbouillon
WeasyPrint has been created and developed by Kozea (https://kozea.fr/). Professional support, maintenance and community management is provided by CourtBouillon (https://www.courtbouillon.org/).
Copyrights are retained by their contributors, no copyright assignment is required to contribute to WeasyPrint. Unless explicitly stated otherwise, any contribution intentionally submitted for inclusion is licensed under the BSD 3-clause license, without any additional terms or conditions. For full authorship information, see the version control history.
Recursos relacionados

MarkItDown
CLIConverts PDF, Word, Excel, PowerPoint, HTML, images, audio and more into Markdown that keeps headings, lists and tables, ready for LLMs to read and analyze. Maintained by Microsoft; requires Python 3.10+.
microsoft/markitdown191k
Docling
CLIParses PDF, DOCX, PPTX, XLSX, HTML, images and audio, recovering layout, reading order, tables and formulas, and exports Markdown, HTML or lossless JSON. Started by IBM Research, now hosted by the LF AI & Data Foundation; runs fully locally.
docling-project/docling69k
Marker
CLIConverts PDFs, images, PPTX, DOCX, XLSX, EPUB and more into Markdown, JSON or HTML, preserving tables, formulas and layout, with optional LLM help for higher accuracy. Needs Python 3.10+ and PyTorch; large-scale commercial use of the model weights needs a paid license.
datalab-to/marker40.5k
Camelot
CLIOpen-source PDF table extraction with a camelot CLI: exports tables from financial reports, bank statements and statistical reports to Excel, CSV or Markdown, with an accuracy score. Needs Python 3.10+; handles text-based PDFs by default, scans need the ml and ocr extras. Double-check results.
camelot-dev/camelot3.8k
pdf2docx
CLIConverts PDFs to editable Word files, keeping paragraphs, tables, images and layout as closely as possible, and can extract tables alone, handy when a contract or exam only exists as PDF. Needs Python; digital PDFs only, OCR scans first. No longer actively maintained by Artifex.
ArtifexSoftware/pdf2docx3.5k
Pix2Text
CLIRecognizes images or whole PDFs (including scans) with math formulas and tables into Markdown and LaTeX, strong on English and Chinese and supporting 80+ languages, handy for digitizing exams, lecture notes and study notes. An open-source Mathpix alternative that runs locally with Python.
breezedeus/Pix2Text3.3k