segy / Mpdf

CakePHP 2.x Component for creating PDF files from HTML using mPDF class
30 stars 19 forks source link

Cannot render send_email view file after saving pdf #12

Open Dave-Edwards opened 8 years ago

Dave-Edwards commented 8 years ago

Hi, I have used your component to great effect, but seem to have a problem, which I can’t fathom out.

If I use your example and have a view file called generate_pdf (which becomes the body of the pdf) and another called send_email, I find that I can successfully save the pdf to file, but when control is passed back to the send_email method it does not render the view file on the screen. What I actually see is the pdf itself, despite the fact that it was saved correctly to file.

I’m sure I’m missing something simple here, but what I want to do is save the pdf which will then return control to the send_email method and then display the standard contents of the the view file associated with this method.

Can you help please?