I have a script that generates a pdf file. The file name is defined in MergePdf.class.php
But I wanted it to be defined in the source file (variable $ filename), where it calls this php, which is below:
//destination path for the User PDF file:
$nomearquivo = 'teste';
$pdfUserfile = JPATH_SITE.'/pdf/pdf-padrao1.pdf';
copy($pdfUser,$pdfUserfile);
require_once("/home/site/public_html/scripts/pdf/MergePdf.class.php");
MergePdf::merge(
Array(
$pdfUserfile,
$arquivoiptu
),
MergePdf::DESTINATION__DISK_INLINE
);
Then I would need to pass this $ filename to MergePdf.class.php, but I do not know how to do it.