I generated a PDF file using JasperReports successfully; the creation of my PDF file is through a button trigger. After generating the file, I would like to print that PDF file in the printer without the PDF preview (Opening the PDF File then clicking the print button). My goal is when the user clicks the button that generates the PDF, it also will print that PDF in the default printer of that computer. BTW, I'm using Windows for this project and Java JRE7.
I successfully accomplished the task by using JPedal, and I can now print pdf file directly onto the printer with the actual size by using the code
decodePdf.setPrintPageScalingMode(PrinterOptions.PAGE_SCALING_REDUCE_TO_PRINTER_MARGINS);