This solution is based on the usage of Jasper Reports to create PDF reports inside APEX.
You may had the requirement to create a PDF document with a direct print dialog but there should be no download pop-up dialog or an in-line view appear where the end user explicitly needed to click on the print button. Seems to be a simple problem: Print dialog should immediately appear after PDF creation.
Actualy there is a quite easy workaround available:
Just add this new property under the properties section (for you document) in the iReport builder settings.
Next step is to configure a way so that you do not need to open or close the PDF manually.
For that add a new HTML area with the following code on your master page (like page 1).
javscript:refreshPDF()This could be added as button href link or as a dynamic action.
The generated PDF on page 2 must be an embedded PDF.
The trick is that the iFrame is more or less not visible to the end user and becomes only refreshed when the end user calls the function: refreshPDF
The idea and most of the code comes from my good fellow Sebastian.