开发者

Converting CodeIgniter view into PDF

开发者_开发知识库

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜