Hey everybody!
After generating a *.pdf with "plugins.file.writeFile()" I want to print this file.
At the moment my code looks like:
var desktop = Packages.java.awt.Desktop;
var file = new Packages.java.io.File("D:\\test.pdf");
if(desktop.isDesktopSupported())
{desktop.getDesktop().print(file);}
The *.pdf is opened and directly sent to the default printer.
I would prefer to get the print dialog and not to open this file.
Any suggestions?
Greets Ina