flyingsaucer
jstachio
Our great sponsors
flyingsaucer | jstachio | |
---|---|---|
6 | 27 | |
1,913 | 208 | |
1.2% | 14.4% | |
9.6 | 9.4 | |
4 days ago | 7 days ago | |
Java | Java | |
GNU General Public License v3.0 or later | 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.
flyingsaucer
-
CSS for Printing to Paper
I have been creating print labels with plot/cut lines using css and I used browsers to covert it to PDF. The experience was terrible. While all was perfect on my 1-page proof print, both large browsers messed up the final document (with a few hundred labels on several pages).
Firefox forgot to render images after a few pages. So on some labels the barcodes were not printed.
Chrome looked good at the fist glance. But it turned out that the plot/cut lines (which I created via CSS borders) had been shifted by 1-2mm on _some_ pages. Result was garbage.
I finally switched to https://github.com/flyingsaucerproject/flyingsaucer which is a high quality HTML/CSS to PDF library. Only drawback is that it only supports CSS 2.1, so some fancy features are not supported like rotating text.
-
Htmldocs: Typeset and Generate PDFs with HTML/CSS
I've used flying saucer pdf[1] for this in the past, but the missing piece always seems to be a descent WYSIWYG template editor. Either open source or paid.
Any suggestions on a web solution that allows non-devs to make great templates would be appreciated.
Historically I've built something simple with Tiny and added a preview button to render, but that super clunky.
-
is thymleaf still used
Same, we also use it in conjunction with Flying Saucer PDF to produce PDF reports.
- How do i convert html file to pdf file using java(fx)?
-
Is Jasper still the best Report Engine?
Personnaly, I'm a big fan of Flying Saucer.
-
Is there a Kotlin-first library to create PDFs?
Not Kotlin first, but I use Flying Saucer (LGPL licenced) in Java.
jstachio
-
Full stack web development in a single Java file: An intro to Javalin and htmx
Anyway it was one of the reasons we (my company) went with Mustache and why I wrote JStachio.
-
HTML template languages?
I don't know Dart that well (only experimented with simple apps) and just kind of lurk on this sub but I am the author of a HTML templating language (Mustache) in Java that uses annotations and code generation: https://github.com/jstachio/jstachio
- Show HN: JStachio a type-safe Mustache engine that is incredible fast
-
Feedback on a new annotation processor api
Things like this https://github.com/jstachio/jstachio (author) would not be possibly with just an include like preprocessor.
- Interpolating Strings Like a King in Java 21
-
Hey guys, just wanted to let you know that JStachio v0.9.0 is now out and it even comes with Spring support! So go ahead and give it a try if you're into that kind of thing!
Hey guys, wanted to share my project JStachio with you all. It's a java templating engine that's like Mustache.java and Handlebars.java in syntax but also compile time type safe like JTE, Rocker, and Qute.
-
Introducing Bld: A New Pure Java Build System
On a related note I have been really liking the newer Java feature of being able to execute .java files directly. I have been using them frequently to execute what would normally be a Bash or Python script. I actually have a Java .java script that mimics some parts of the Maven release plugin and because Java speaks XML really well it was easier to implement it in Java than Bash or some other scripting language which makes me think /u/bowbahdoe point on including a JSON parser with the standard lib would be very useful.
-
Modern frontends using Spring Boot and Thymeleaf (yes, modern, you read it right, as in SPA)
I plan on releasing an unpoly (htmx like library) petclinic using my templating library https://github.com/jstachio/jstachio (superior to thymeleaf but I’m biased) and some avaje + Jooby. Hopefully next month.
-
What's the point of autogenerating DTOs from entities?
But going back to they can generate whatever they want they could even make an expression or template language that is type safe (and I know this is possible as an author of such a library).
-
JEP 430: String Templates (Preview) Proposed to Target Java 21
For those that do not like the syntax and still want compile time string interpolation check out my library: https://github.com/jstachio/jstachio
What are some alternatives?
iText - [DEPRECATED] Core Java Library + PDF/A, xtra and XML Worker. Only security fixes will be added — please use iText 7
jte - Secure and speedy templates for Java and Kotlin.
Apache PDFBox - Mirror of Apache PDFBox
quarkus-qute
Open HTML to PDF - An HTML to PDF library for the JVM. Based on Flying Saucer and Apache PDF-BOX 2. With SVG image support. Now also with accessible PDF support (WCAG, Section 508, PDF/UA)!
savant-core - This is the main project for the Savant build tool
Apache FOP - Apache XML Graphics FOP
jamal - Jamal is document maintenance automation
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.
stringtemplate4 - StringTemplate 4
Dynamic Jasper - Dynamic Reports using Jasper Reports
Mustache.java - Implementation of mustache.js for Java