Welcome to the nuBuilder forums!

Please register and login to view forums and other content only available to registered users.

Naming PDFs written to filesystem

Post Reply
mlgeek
Posts: 23
Joined: Tue May 08, 2012 8:24 pm

Naming PDFs written to filesystem

Unread post 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!
shane
Posts: 100
Joined: Mon Jun 15, 2009 10:04 am

Re: Naming PDFs written to filesystem

Unread post 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
mlgeek
Posts: 23
Joined: Tue May 08, 2012 8:24 pm

Re: Naming PDFs written to filesystem

Unread post by mlgeek »

Thanks, Shane. I'd already embraced the fact that I'd need to alter source code- any suggestions on where to start?
Post Reply