HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
flyingsaucerproject
flyingsaucer
Java2014–2025
flyingsaucerproject / flyingsaucer

flyingsaucer

XML/XHTML and CSS 2.1 renderer in pure Java

9Distinct people
10Mentions
0Explicit recommenders
2.2KGitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

XML/XHTML and CSS 2.1 renderer in pure Java

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 5:04:57 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by year10 dated mentions

Observed mentions: 2014-10-12 02:30:34 UTC to 2025-10-01 16:23:37 UTC.

0123452014-01-01 00:00:00 UTC to 2015-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments20142015-01-01 00:00:00 UTC to 2016-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2016-01-01 00:00:00 UTC to 2017-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2017-01-01 00:00:00 UTC to 2018-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2018-01-01 00:00:00 UTC to 2019-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2019-01-01 00:00:00 UTC to 2020-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments20192020-01-01 00:00:00 UTC to 2021-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-01-01 00:00:00 UTC to 2022-01-01 00:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 comments2022-01-01 00:00:00 UTC to 2023-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2023-01-01 00:00:00 UTC to 2024-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-01-01 00:00:00 UTC to 2025-01-01 00:00:00 UTC (exclusive): 5 mentions; 0 submissions, 5 comments2025-01-01 00:00:00 UTC to 2026-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2025

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
20142014-01-01 00:00:00 UTC2015-01-01 00:00:00 UTC101
20152015-01-01 00:00:00 UTC2016-01-01 00:00:00 UTC000
20162016-01-01 00:00:00 UTC2017-01-01 00:00:00 UTC000
20172017-01-01 00:00:00 UTC2018-01-01 00:00:00 UTC000
20182018-01-01 00:00:00 UTC2019-01-01 00:00:00 UTC101
20192019-01-01 00:00:00 UTC2020-01-01 00:00:00 UTC000
20202020-01-01 00:00:00 UTC2021-01-01 00:00:00 UTC000
20212021-01-01 00:00:00 UTC2022-01-01 00:00:00 UTC202
20222022-01-01 00:00:00 UTC2023-01-01 00:00:00 UTC000
20232023-01-01 00:00:00 UTC2024-01-01 00:00:00 UTC000
20242024-01-01 00:00:00 UTC2025-01-01 00:00:00 UTC505
20252025-01-01 00:00:00 UTC2026-01-01 00:00:00 UTC101

What Hacker News says

10 sources
Is this an xy problem? If you have the original document (in Markdown), one possibility would be to use my software, KeenWrite[1], to convert Markdown to XHTML then typeset XHTML to PDF via ConTeXt. See the user manual[2] for an example of a Markdown document typeset in this fashion, along with usage instructions. If you only have HTML to work with, you can also use Flying Saucer[3], which is what KeenWrite uses to preview Markdown documents when rendered as HTML. Flying Saucer uses an open-source version of iText[4] to produce PDF documents (from HTML source docs). Another possibility is to use pandoc and LaTeX. [1]: https://keenwrite.com/ [2]: https://keenwrite.com/docs/user-manual.pdf [3]: https://github.com/flyingsaucerproject/flyingsaucer [4]: https://itextpdf.com/
In Ask HN: What is nowadays (opensource) way of converting HTML to PDF?
A few JavaFX issues I've encountered while writing KeenWrite[1], my FOSS text editor based heavily on JavaFX: * Building installer-free cross-platform binaries on a local Linux build machine requires an external packager[2]. * Good luck building an installer-free binary for CPU architectures that differ from the compiler's machine. * Creating a Windows version will cost $ (to sign). * Creating a macOS version will cost $ (to sign). * WebView is a bloated beast that bundles JavaScript and exposes no API to set scrollbar positions. * FlyingSaucer[3] is a lightweight alternative to WebView, but requires a SwingNode. * SwingNode text rendering is blurry on Windows. * SwingNodes issue GDK-3 warnings on Linux. * Menu latching messes up cross-platform (Alt+Tab is a wrench). * Modular applications are a pain. Migration has been poorly communicat
Read the rest
ed, poorly documented, and poorly supported. * RichTextFX has no way of changing the caret style in insert mode. * PreferencesFX, and likely other FX libraries, has security issues. * For MDI with dockable panes, take a look at tiwulfx-dock[4]. Java problems: * "Write once, run anywhere" is no longer true. * Apache Batik for rendering SVG images is buggy, EchoSVG[5] is better. * Rendering math as SVG is hard[6]. * Cross-platform user data directory that complies with XDG, Windows, and macOS will take effort. * Reliably locating executable programs across platforms is a chore. Depending on your requirements, C++ and imgui may be a better choice.[7] [1]: https://gitlab.com/DaveJarvis/KeenWrite [2]: https://github.com/Reisz/warp/ [3]: https://github.com/flyingsaucerproject/flyingsaucer [4]: https://github.com/panemu/tiwulfx-dock [5]: https://github.com/css4j/echosvg [6]: https://gitlab.com/DaveJarvis/KeenType [7]: https://github.com/ocornut/imgui/issues/4400#issuecomment-89...
In Home to Anything JavaFX Related
I built an open source project like this some years ago (holy carp! 20 years ago) called Flying Saucer. It was a pure Java HTML + CSS2 renderer. I imagined people would use it to render rich text UIs in games, but the killer use ended up being server side PDF generation. It was far easier to generate HTML and render to a PDF than to use the various PDF report generation APIs available at the time. Blitz looks cool. I'm excited to see more GUI libs in Rust. https://en.wikipedia.org/wiki/Flying_Saucer_(library) PS: amazingly it is still being updated! https://github.com/flyingsaucerproject/flyingsaucer/releases...
In Blitz: A lightweight, modular, extensible web renderer
Great achievement, congratulations! This reminds me of flying saucer, a CSS render written in pure Java. Successfully used it in multiple projects for rendering PDFs in the past. It has some great features to handle paged media. For example, it can repeat table headers on a new page, if there is a page-break within the table. Unfortunately, it seems that it doesn't get much active development anymore. https://github.com/flyingsaucerproject/flyingsaucer
In Show HN: Dropflow, a CSS layout engine for node or
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.
In CSS for printing to paper
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. [1] https://github.com/flyingsaucerproject/flyingsaucer
In Show HN: Htmldocs – Typeset and generate pdfs with HTML/CSS
After trying many HTML2PDF libraries we're doing the same thing and are quite happy with this approach. I've tried using "professional" solutions like iText pdfHTML[0]. They all seem to be based on flyingsaucer[1] which only supports HTML4 and CSS2, and will fail rendering pages that use modern CSS let alone JavaScript. [0]: https://itextpdf.com/en/products/itext-7/convert-html-css-to... [1]: https://github.com/flyingsaucerproject/flyingsaucer
In Wkhtmltopdf: Command line tools to render HTML into PDF
Our rails app generates dozens of accounting related reports on the fly in HTML and we use Flying Saucer to generate a PDF version - https://github.com/flyingsaucerproject/flyingsaucer To help minimize request time, we keep Flying Saucer persisted with Nailgun - https://github.com/martylamb/nailgun For generating checks, IRS forms and other PDFs that involve precise formatting we use Prawn - https://github.com/prawnpdf/prawn
In Ask HN: What do you use for PDF reports these days?

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.