fix error with pdf file extension
This commit is contained in:
parent
88bab78b3b
commit
ac49e3ccf1
@ -332,8 +332,10 @@ class UserCardController extends Controller
|
|||||||
");
|
");
|
||||||
$mpdf->WriteHTML("<div>$userCard->resume_text</div>");
|
$mpdf->WriteHTML("<div>$userCard->resume_text</div>");
|
||||||
|
|
||||||
$mpdf->Output("Resume - {$userCard->fio}", 'D'); // call the mpdf api output as needed
|
$filename = "Resume - " . $userCard->fio . ".pdf";//You might be not adding the extension,
|
||||||
exit;
|
|
||||||
|
$mpdf->Output($filename, 'D'); // call the mpdf api output as needed
|
||||||
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
private function downloadResumeDocx(UserCard $model)
|
private function downloadResumeDocx(UserCard $model)
|
||||||
|
Loading…
Reference in New Issue
Block a user