and after pressing the button, the test.pdf should appear in the specified path without any dialog window.
var printer = this.getPrintParams();
printer.fileName = "";
printer.printerName = "Adobe PDF";
Nothing happens and the test.pdf isn't in the path.