Helper/Pdf.php
public function template2Pdf()
    {
        /**transport use to get the variables $order object, $invoice object and the template model object*/
        $parts = $this->transport();

        /** instantiate the mPDF class and add the processed html to get the pdf*/
        $applySettings = $this->eaPDFSettings($parts);

        $fileParts = [
            'filestream' => $applySettings,
            'filename' => filter_var($parts['filename'], FILTER_SANITIZE_URL)
        ];

        return $fileParts;
    }
public function template2Pdf()
    {
        /**transport use to get the variables $order object, $invoice object and the template model object*/
        $parts = $this->transport();

        /** instantiate the mPDF class and add the processed html to get the pdf*/
        $applySettings = $this->eaPDFSettings($parts);

        $fileParts = [
            'filestream' => $applySettings,
            'filename' => filter_var($parts['filename'], FILTER_SANITIZE_URL)
        ];

        return $fileParts;
    }
public function template2Pdf ( ) { /**transport use to get the variables $order object, $invoice object and the template model object*/ $ parts = $ this -> transport ( ) ; /** instantiate the mPDF class and add the processed html to get the pdf*/ $ applySettings = $ this -> eaPDFSettings ( $ parts ) ; $ fileParts = [ 'filestream' => $ applySettings , 'filename' => filter_var ( $ parts [ 'filename' ] , FILTER_SANITIZE_URL ) ] ; return $ fileParts ; }
Filename of the pdf and the stream to sent to the download

@return array
Filename of the pdf and the stream to sent to the download