我使用Kohana PDF Viewer Module(DOMPDF)从HTML页面动态创建PDF文件。将生成的PDF附加到电子邮件Kohana
我能够使用Kohana的send_file
查看或下载PDF:
// Load a view using the PDF extension
$pdf = View_PDF::factory('Print/Summary');
// Use the PDF as the request response
$response = new Response();
$response->body($pdf);
$filename = 'myfile.pdf';
$response->send_file(TRUE, $filename, array('inline' => TRUE));
我想这个PDF附加到电子邮件和发送,但我不能确定什么的最好方法得到这个PDF,因为我通常会使用上传的文件而不是生成的服务器?
感谢您的帮助。
这家伙是谁,电子邮件Kohana的?或者她是女孩?总是用胶水粘贴PDF –