【发布时间】:2015-05-31 17:47:42
【问题描述】:
我想从包含高度图的树枝视图生成 PDF 文件 高度图不显示在 pdf 文件中。 为什么 ?任何建议
$html = $this->render('AcmequizBundle:Resultat:show.html.twig', array(
'entity' => $entity,
'chart'=>$ob
));
return new Response(
$this->get('knp_snappy.pdf')->getOutputFromHtml($html,array('encoding'=>'UTF-8','enable-javascript' => true,'images' => true)),
200,
array(
'Content-Type' => 'application/pdf',
'Content-Disposition' => 'attachment; filename="Rapport.pdf"'
)
);
【问题讨论】: