开发者

Converting CodeIgniter view into PDF

开发者 https://www.devze.com 2023-03-08 09:39 出处:网络
开发者_开发知识库I\'m trying to convert an output from a view file into PDF with TCPDF library. But I don\'t know how to configure it. Every tutorial I\'ve read states that the PDF data should be incl
开发者_开发知识库

I'm trying to convert an output from a view file into PDF with TCPDF library. But I don't know how to configure it. Every tutorial I've read states that the PDF data should be included outside of view. So the question is, it's a truth that I can't convert output from view into PDF?


This has probably something to do with the way you would normally create PDF files with TCPDF. You can't just take a view (or the output from one) and tell TCPDF to 'create my HTML as a PDF'. TCPDF needs you to tell it where to put what in which cells.

You could take a look at this project instead of TCPDF if you need to create PDF's from your views. I haven't tried it myself, but I've heard some good things about it.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号