Apache FOP
glitter
Apache FOP | glitter | |
---|---|---|
2 | 2 | |
169 | 3 | |
1.8% | - | |
7.5 | 9.6 | |
9 days ago | 28 days ago | |
Java | TypeScript | |
Apache License 2.0 | GNU General Public License v3.0 only |
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.
Apache FOP
-
Show HN: Dropflow, a CSS layout engine for node or <canvas>
I've served dynamic content directly as PDF with https://xmlgraphics.apache.org/fop/
-
Why didn't Microsoft release Windows 9? - ChatGPT explains the theory.
Java software was sometimes often a particularly bad offender because java made it even easier to do this shit. Here's an example from people that really should have known better.... https://searchcode.com/file/19737045/fop-1.0/src/java/org/apache/fop/fonts/autodetect/WindowsFontDirFinder.java/ - https://xmlgraphics.apache.org/fop/
glitter
-
Show HN: Dropflow, a CSS layout engine for node or <canvas>
I've used satori [0] on the backend with TypeScript/Deno to render JSX as an SVG (which is then rendered to a PNG).
Satori is meant for rendering Open Graph images (e.g. the little images that come up when you post a link on Twitter/Slack/Facebook), but I found that it works well for rendering arbitrary images. It supports a subset of modern CSS, including flexbox.
My use case is posting match reports for League of Legends into a Discord text channel, e.g. person X just played a match, here are their stats.
It's quite nice because there are almost zero server-side native dependencies (the one exception is the library to convert svg -> png requires some native libraries).
Here's what a match report looks like: [1]
Here's an example of what the JSX looks like: [2]
[0]: https://github.com/vercel/satori
[1]: https://github.com/shepherdjerred/glitter/blob/main/assets/p...
[2]: https://github.com/shepherdjerred/glitter/blob/main/packages...
-
Learn SVG with 25 examples – How to code images in HTML
Another way is to write HTML/CSS and use satori [0] to convert that to SVG. It's meant for Open Graph images (the images that show up when you link a site in Discord, Slack, Twitter, etc.), but it works quite well for anything.
This is obviously not as flexible as true SVG, but it is familiar to author for anyone who's written a React application. I've used it on the backend to generate match reports for League of Legends [1]
[0]: https://github.com/vercel/satori
[1]: https://github.com/shepherdjerred/glitter-boys
What are some alternatives?
Apache PDFBox - Mirror of Apache PDFBox
Frappe Charts - Simple, responsive, modern SVG Charts with zero dependencies
iText - [DEPRECATED] Core Java Library + PDF/A, xtra and XML Worker. Only security fixes will be added — please use iText 7
html5spec - The WHATWG HTML5 spec as machine-readable JSON
flyingsaucer - XML/XHTML and CSS 2.1 renderer in pure Java
Dynamic Jasper - Dynamic Reports using Jasper Reports
OpenPDF - OpenPDF is a free Java library for creating and editing PDF files, with a LGPL and MPL open source license. OpenPDF is based on a fork of iText. We welcome contributions from other developers. Please feel free to submit pull-requests and bugreports to this GitHub repository.
Konik - A library to create, read and validate ZUGFeRD compliant invoices. Available for Java and .NET
pdfsam - PDFsam, a desktop application to split, merge, mix, rotate PDF files and extract pages