Naming PDFs written to filesystem
Posted: Thu Apr 25, 2013 4:35 pm
Hello!
When I run a report and generate a PDF, I'll like to save it to the server's filesystem and then FTP it to another server.
I worked out that I need to edit run_report_pdf_v2.php, adding:
What I'd really like to do, though, is to have the file named by the report that was run to create the PDF. For example, if the report run is called "Clients," I'd love to have the PDF saved as "clients.pdf."
I'm not seeing an immediate, simple way to do that.
Suggestions?
Many thanks in advance!
When I run a report and generate a PDF, I'll like to save it to the server's filesystem and then FTP it to another server.
I worked out that I need to edit run_report_pdf_v2.php, adding:
Code: Select all
$pdf->Output('[path]/[filename.pdf]','F');
I'm not seeing an immediate, simple way to do that.
Suggestions?
Many thanks in advance!