Generate a PDF from a Form - How to do it??? |
[eluser]Alex91[/eluser]
Hi guys, I'm new to CodeIgniter, and have a question. I'm building a site for a client. Now he asked me to make a form with different textfields and memofields. But what is the best way to do it? I searched this for for a anwser, but only found how to create static PDF files by using DOMPDF. For example the for have this fields: - Name - Message (It can have multiple lines) Thanks for your help.
[eluser]hardik[/eluser]
you can use tcpdf or dompdf this is the post which will help you i guess http://ellislab.com/forums/viewthread/45118/
[eluser]Alex91[/eluser]
I tried different things to get DOMPDF working. But it's not working here for me... The most important thing is to get DOMPDF working. I put the question in the other topic, so this one got's to wait.
[eluser]rogierb[/eluser]
Have you checked out http://codeigniter.com/wiki/PDF_generati...ng_dompdf/? When implemented correctly, this works like a dream.
[eluser]eric cumbee[/eluser]
i had to build a web app that fills out a government form(voter registration). i took a image of the form, used GD to add the text and then sent them to tcpdf, overall it works pretty good.
[eluser]Alex91[/eluser]
When i'll try that, i'll get this error: Code: A PHP Error was encountered Controller: Code: <?php View Code: <div class="content"> What do I wrong?
[eluser]eric cumbee[/eluser]
i do not see where you have declared what is in the data var?
[eluser]Alex91[/eluser]
Yeah, that's is also what i saw. Only, where to put the $dat what's going in to the PDF? Thanks so far.
[eluser]Andy Ingham[/eluser]
Hi Alex, Did you manage to fix your problem? I've installed dompdf recently, so might be able to help. You should have the 'to_pdf_pi.php' file in your plugins folder. You should then have a 'dompdf' folder in your plugins folder which contains 'dompdf.php' and 'dompdf_config.inc' (and possibly some other files). If you look in your 'plugins\to_pdf_pi.php' file at line 6, it should have a line something like the following: Code: require_once("dompdf/dompdf_config.inc.php"); Does this sound to be consistent with how you've got things set up? |
Welcome Guest, Not a member yet? Register Sign In |