ajax - WriteHtml Can't Work Properly in mpdf send mail with attachment in php mvc? -
i tried make pdf html mpdf library , send mail pdf file attachment.but can't. writehtml can't responced.
writehtml give response :
headers no-store no-chach type:html/text $mpdf = $stockmodel->getpdfobj(); $mpdf->allow_charset_conversion = true; $mpdf->charset_in = 'iso-8859-2'; //$mpdf->allow_html_optional_endtags = true; //$mpdf->restoreblockpagebreaks = true; $mpdf->useonlycorefonts = true; //$mpdf->setprotection(array('print')); $mpdf->setheader('|'.$stype.'|date '.date("d-m-y").' '); $mpdf->setfooter('www.angellogistic.in'); $mpdf->defaultheaderfontsize=7; $mpdf->defaultheaderfontstyle='b'; $mpdf->defaultheaderline=0; $mpdf->defaultfooterfontsize=7; $mpdf->defaultfooterfontstyle='bi'; $mpdf->defaultfooterline=0; $mpdf->settitle("angel logistic"); $mpdf->setauthor("angel logistic"); $mpdf->setwatermarktext("angel logistic"); $mpdf->showwatermarktext = true; $mpdf->watermark_font = 'dejavusanscondensed'; $mpdf->watermarktextalpha = 0.1; $mpdf->setdisplaymode('fullpage'); $mpdf->writehtml(utf8_encode($html));
in html assign html , inline css code , tags.
Comments
Post a Comment