Hello Friends,
If you are using TCPDF( A Plugin used to generate PDf files) then sometime you may face that this files are not opening in smart devices. You may see some garbage data instead of pdf file.
Then do not worry, just put a exit; after ouput the pdf file.
$pdf_object = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, false, 'UTF-8', false);
$fileattribute = $pdf->Output($fileName, 'E');
exit;
Please notice last line of exit statement and you have done.
0 Comment(s)