Good community, I ask for your help again, this time it is about the generation of a PDF document with the mPDF library.
The query is as follows: How do I determine the destination of my PDF generated? That is, I know that when the document is generated, the user is given the option to save or open, but regardless of these options I want to save it in a specific folder when it is generated. It would be something like 2 documents, one that I keep through the code, and another that the user decides whether to open it or save it. Here I leave a portion of my code in case it is useful. Thanks in advance.
$mpdf = new mPDF('c', 'A5');$css= file_get_contents("recursos/estilos/estilo_reporte.css");
$mpdf->WriteHTML($css,1);
$mpdf->writeHTML($HTML,2);
$mpdf->Output('Reporte.pdf','I');