Page 1 of 1

Naming PDFs written to filesystem

PostPosted: Fri Apr 26, 2013 12:05 am
by mlgeek
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:

Code: Select all
$pdf->Output('[path]/[filename.pdf]','F');


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!

Re: Naming PDFs written to filesystem

PostPosted: Mon Apr 29, 2013 1:58 pm
by shane
you will have to modify nuBuilder's source code to do what you want at this point,we are working on a new version which will include this but that is awhile away

Re: Naming PDFs written to filesystem

PostPosted: Mon Apr 29, 2013 11:19 pm
by mlgeek
Thanks, Shane. I'd already embraced the fact that I'd need to alter source code- any suggestions on where to start?