I've these days been trying to automatically save a PDF file just after creating it, using TCPDF. But I always get prompted for a save destination, and I have to click the "save" button in order to save the file in a certain location. I want all of this to be automatic:
- Set the distination folder of the file.
- Download the file.
here is my code:
$pdf = new TCPDF('P','mm','A4');
$pdf->AddPage();
$pdf->Output("C:\Users\f377185\Desktop", 'I');
$pdf->Output("C:\Users\f377185\Desktop", 'F');
Can you help me ?