Current PDF when downloaded had to be renamed manually, this can be done automatically based on the description set in your reports and titles without sending additional data from the form via javascript.
Below is the code that is required in nurunpdf.php. This can be changed to one's preference or the original configuration could be left as it is.
Just thought of sharing with everyone.
Code: Select all
$desc = $JSON->description;
$title = $JSON->title;
$date = date('Y-m-d_H-i-s');
$file_name = 'Report_' . $title . '_' . $desc . '-' . $date . '.pdf';
//$PDF->Output('nureport.pdf', 'I');
$PDF->Output($file_name, 'I');