开发者

Question creating PDF document in Zend Framework

I need to take a ZF rendered view and create a PDF that should look pretty much exactly the same, and email it.

The major issue I have right now is getting the HTML created by the view into a string that I can then process with the Zend_PDF::parse method.

The view I need to turn into a PDF is the result of a posted form. I've tried grabbing the contents of ob_get_contents into a string after a s开发者_JS百科uccessful post, but for some reason its not in there. Should I press on with this angle?

Any help would be greatly appreciated!


If you're looking to take the HTML that your view generates and dump that into function and get a PDF out you might try dompdf. It's designed to do exactly that.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜