I'm working on a php(codeigniter) form that sends data to a PDF file when submitted. I can get value of a text field to populate corresponding field in PDF but don't know how to display checkbox in pdf. Can someone help please?
thanks Ahammed
I'm working on a php(codeigniter) form that sends data to a PDF file when submitted. I can get value of a text field to populate corresponding field in PDF but don't know how to display checkbox in pdf. Can someone help please?
thanks Ahammed
Just because the form submitted to your application used a checkbox doesn't mean that your PDF has to have one. Afterall, it's just going to be a static representation of what was submitted. You have two immediately obvious options which don't require checkboxes
You could, for one, include JavaScript in the PDF to generate the checkbox dynamically. Here is the JavaScript API: PDF file. Advantage: You can in the same JS instance add behaviour to the checkbox.
How to do this, however, depends on your used PDF framework.
If it's just for display purpose, go with icio's answer and embed simply a static image.