I have a Java application, which communicates to a printer and prints documents. Till now I needed only PS/PDF and the printer could handle that. However, now I need to print HTML documents also.
I have seen that it is possible to do it using JavaFX (WebView), but the server on which the application runs does not have a display. Hence, I cannot render it to a display object (in Swing or AWT). What are my options to get a PostScript rendering of a web page which I can then send to the printer?
One solution I had was to use xvfb to emulate a display screen, but that not only seems far fetched, but also is impossible for us to maintain as we use cloud services and our current CI framework does not handle management of system-level binaries.
Any help is greatly appreciated.