typst
WeasyPrint
typst | WeasyPrint | |
---|---|---|
135 | 46 | |
36,860 | 7,386 | |
3.8% | 1.9% | |
9.8 | 9.5 | |
3 days ago | 4 days ago | |
Rust | Python | |
Apache License 2.0 | 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.
typst
-
Laid Off in My Career, and Twice in One Year
I may be a tad late, but typst does have a compiler you can use locally with your favorite local text editor.
https://github.com/typst/typst/releases
-
MdBook – a command line tool to create books with Markdown
I am happily experimenting with Typst right now (https://typst.app/ ), which compiles much faster than LaTeX and with a syntax very similar to md, together with nice support for math, figures and advanced settings.
-
You too can write a book
Check out [typest](https://typst.app/) if you're looking to write a book yourself.
[Hypermedia Systems book](https://hypermedia.systems/) was written with it.
-
Exploring Typst, a new typesetting system similar to LaTeX
This [issue](https://github.com/typst/typst/issues/4224) and others like it are dealbreakers for me. There are numerous related issues, but the developers are stubbornly sticking to their interpretation—using the older definition of leading from the days of metal type, rather than the more modern concept of line-spacing. No other software or modern typesetting system I know of uses this approach anymore. This is particularly frustrating since I work with a lot of multilingual text, including Arabic, and it's very difficult to align the baselines when setting text in more than one column.
-
Quarkdown: Markdown with Superpowers
- Long-form, print-friendly report generation, including data visualization, tables and images
[0] https://github.com/typst/typst
-
Show HN: Srcbook – A TypeScript notebook for rapid prototyping
I somehow didn't know about https://github.com/typst/typst. This is a really cool project, going to dig in further.
At first glance, this seems particularly useful for scientific-style notebooks, which aren't our primary focus. If the demand is there though, I don't see why we couldn't integrate.
-
Blitz: A lightweight, modular, extensible web renderer
It's kinda early, but we're looking at collaborating with https://typst.app/ (a modern LaTeX alternative) on this. They already have some of the low-level PDF writing infrastructure in place, and are working on something higher-level that we're hoping to use.
(you could also look at using Typst directly if you're not tied to HTML)
-
Introduction to Haskell Diagrams
I think that I need something in between. Recently, I was checking typst. It is quite impressive. But I am not sure if I need a better LaTeX.
-
Why I Prefer RST to Markdown
I think the previous author is confused because if you google "Typst", you end up at https://typst.app, which seems to only advertise the web GUI and not the open-source CLI tool.
-
What TeX Gets Right
> Now, it’s certainly possible that one could develop a new, generative typesetting language that captures the virtues that I’ve discussed above and is free of TeX’s historical baggage.
Like [typst](https://github.com/typst/typst)?
WeasyPrint
-
Converting Plotly charts into images in parallel
To create our PDF reports, we use a combination of Weasyprint, Jinja, and Plotly charts. To render a report as a PDF, we first have to render all graphs as images.
-
Using Pandoc and Typst to Produce PDFs
https://github.com/Kozea/WeasyPrint
> 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.
Hmm, I wonder if you could use servo for a similar purpose.
-
CSS Written in Pure Go
Also see a full web rendering engine (modern HTML+CSS the whole layout engine) made in pure Python, that can export to PDFs: https://github.com/Kozea/WeasyPrint
-
Launch HN: Onedoc (YC W24) – A better way to create PDFs
Is there a reason you didn't consider something like Weasyprint?
https://weasyprint.org
I've gone through a number of systems to convert CV's, business cards, and other docs and it hasn't let me down yet.
-
CSS for Printing to Paper
You don't _have_ to use a browser. I had very good results with Weasyprint [0]. And there's also PrinceXML [1] if you're willing to pay.
[0]: https://weasyprint.org/
-
Show HN: A new open-source library to design PDF using React
Thanks for your answer! I imagined you would be using PrinceXML behind the scenes since that is probably the gold standard in HTML+CSS rendering.
The only open source alternative I know of is WeasyPrint at https://weasyprint.org/. I'm not sure how well it fares against PrinceXML, though.
And thanks for the pointer to Taffy - I didn't know it before!
- 1.5M PDFs in 25 Minutes
-
Htmldocs: Typeset and Generate PDFs with HTML/CSS
Flexbox support has been [included][1] since 2018, although my use case was the prototypical one - a single row w/ 3 columns - so YMMV with how it handles more complex layouts.
[1]: https://github.com/Kozea/WeasyPrint/pull/579
-
How to Simply Generate a PDF From HTML in Symfony With WeasyPrint
Performance is not the strength of WeasyPrint, meaning that heavy HTML files will increase generation time. You should always compress images before attaching them, as they are not compressed by default. Generating a 50-page-long PDF may take up to a minute in extreme cases, although multi-page documents generated on my project take fewer than 2 seconds to generate.
-
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
https://weasyprint.org/
What are some alternatives?
typst-lsp - [Deprecated] An early language server for Typst, plus a VS Code extension
PyPDF2 - A pure-python PDF library capable of splitting, merging, cropping, and transforming the pages of PDF files
asciidoctor-latex - :triangular_ruler: Add LaTeX features to AsciiDoc & convert AsciiDoc to LaTeX
ReportLab
json-resume-template - JSON-based standard for resume
WKHTMLToPDF - Convert HTML to PDF using Webkit (QtWebKit)
KeenWrite - Free, open-source, cross-platform desktop Markdown text editor with live preview, string interpolation, and math.
PDFMiner - Python PDF Parser (Not actively maintained). Check out pdfminer.six.
tree-sitter-typst - A TreeSitter parser for the Typst File Format
pdftabextract - A set of tools for extracting tables from PDF files helping to do data mining on (OCR-processed) scanned documents.
typst.nvim - WIP. Goals: Treesitter highlighting, snippets, and a smooth intergration with neovim.
PyMuPDF - PyMuPDF is a high performance Python library for data extraction, analysis, conversion & manipulation of PDF (and other) documents.