deaddancer
deaddancer

Reputation: 564

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 successful post, but for some reason its not in there. Should I press on with this angle?

Any help would be greatly appreciated!

Upvotes: 0

Views: 223

Answers (1)

smack0007
smack0007

Reputation: 11366

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.

Upvotes: 2

Related Questions