I have an order form which generates a pdf then prints it automatically using TCPDF. to print it i have to open it which opens a web PDF.
here is the code that opens my pdf
$pdf->Output('test.pdf', 'I');
how can i redirect the user after the print dialog has closed