Hello,
I am tying to create a site that at one point automatically opens the browsers printing dialog box with a streamed PDF.
It currently works on my machine but when we deploy to the
test server i get the error:
java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it. at sun.print.PSPrinterJob.printDialog(PSPrinterJob.java:401)
at org.pdfbox.pdmodel.PDDocument.print(PDDocument.java:......
Can someone please help me solve this.
Thanks.