i am using javascript to print a pdf. when i click on print button,the pdf is generated nd saved somewhere and after that javascript code runs. This javascript opens the pdf and closes it(opens for a fraction of second) and then again open the same pdf with printer popup screen. I want to remove the step where the pdf is opened and closed. i want the pdf should open only onces.
i am using window.open();
thanks,