Naming PDFs written to filesystem

Naming PDFs written to filesystem

Postby mlgeek » Fri Apr 26, 2013 12:05 am

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!
mlgeek
 
Posts: 23
Joined: Wed May 09, 2012 3:54 am

Re: Naming PDFs written to filesystem

Postby shane » Mon Apr 29, 2013 1:58 pm

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
shane
 
Posts: 100
Joined: Mon Jun 15, 2009 5:34 pm

Re: Naming PDFs written to filesystem

Postby mlgeek » Mon Apr 29, 2013 11:19 pm

Thanks, Shane. I'd already embraced the fact that I'd need to alter source code- any suggestions on where to start?
mlgeek
 
Posts: 23
Joined: Wed May 09, 2012 3:54 am


Return to Custom Code