I want to get a pdf of post details , so I installed sfTCPDFPlugin. I’m a new to it so can any one help me with this?
How to generate PDF using sfTCPDFPilugin in symfony 1.4?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The main problem you seems to have is to get the HTML output from your template to put it into the generated PDF. For that, you can use
getPartialorgetPresentationFor.I recommend you to use the
getPartial. Create a partial with the content you want to extract (and by the way, you will be able to use the same partial elsewhere if you need the same information to be viewable as html).Assuming you create a partial called
_my_partial.php, you can do that: