docx4j
WeasyPrint
Our great sponsors
docx4j | WeasyPrint | |
---|---|---|
1 | 34 | |
1,946 | 6,071 | |
- | 1.5% | |
0.0 | 8.6 | |
6 months ago | 10 days ago | |
Java | Python | |
- | BSD 3-clause "New" or "Revised" License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
docx4j
WeasyPrint
-
Show HN: Invoice Dragon – An Open Source App to Create PDF Invoices for Free
For Python there is Weasyprint: you prepare the invoice as an HTML document, and Weasyprint turns it into a PDF
-
The Gemini protocol seen by this HTTP client person (curl dev)
Well yes, but you can implement HTML+CSS. WeasyPrint did from scratch, and independent implementations of HTML+CSS are considerably more numerous than HTML+CSS+JS.
-
Library to convert HTML to pdf in Golang
In a recent project I used https://github.com/Kozea/WeasyPrint/ it is written in python, so you will need to use it like so:
-
RE: If you had to pick a library from another language (Rust, JS, etc.) that isn’t currently available in Python and have it instantly converted into Python for you to use, what would it be?
You should maybe check out weasyprint. https://weasyprint.org/
-
Render PDF with Python
If you plan to create a PDF document from scratch, there are two methods to consider: RML and WeasyPrint. RML is an XML markup language, while WeasyPrint employs HTML/CSS markup. Both are capable of being converted into PDF.
- Best solution for generating pdf documents from templates
-
Typst, a modern alternative to LaTeX, is now open source
If you don't have high typesetting needs, maybe WeasyPrint fits your use case.
- Laying Out a Print Book with CSS
-
QuestPDF will be dual licensed, no longer MIT only
If you have slightly complex documents, give Weasyprint a try, unlike WkHtmlToPdf it support most of CSS Paged Media (friendlier site) which is pretty much mandatory as you get stuff like a proper TOC, running numbers, margins, page breaks etc.
-
QuestPDF: Modern .NET library for PDF document generation
The Paged Media spec on counters and counter-resets paints implementations into a corner. They can't both comply with the spec and implement page count resets on page breaks. This has been a known issue with the spec since 2013[1][2] and been a thorn in implementations since.[3]
1: https://www.w3.org/Style/CSS/Tracker/issues/334
2: https://github.com/w3c/csswg-drafts/issues/4760
3: https://github.com/Kozea/WeasyPrint/issues/93#issuecomment-4...
What are some alternatives?
Apache POI - Mirror of Apache POI
ReportLab
PyPDF2 - A pure-python PDF library capable of splitting, merging, cropping, and transforming the pages of PDF files
documents4j - documents4j is a Java library for converting documents into another document format
WKHTMLToPDF - Convert HTML to PDF using Webkit (QtWebKit)
QuestPDF - QuestPDF is a modern open-source .NET library for PDF document generation. Offering comprehensive layout engine powered by concise and discoverable C# Fluent API. Easily generate PDF reports, invoices, exports, etc.
PDFMiner - Python PDF Parser (Not actively maintained). Check out pdfminer.six.
MathJax - Beautiful and accessible math in all browsers
pymorphy2 - Morphological analyzer / inflection engine for Russian and Ukrainian languages.
pdftabextract - A set of tools for extracting tables from PDF files helping to do data mining on (OCR-processed) scanned documents.
Camelot - A Python library to extract tabular data from PDFs
borb - borb is a library for reading, creating and manipulating PDF files in python.