tags:

views:

103

answers:

3

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

A: 

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

  • Yes/No text
  • Tick/Cross image
icio
thanks.........
hwd
ahammed, if you've found a solution please accept an answer so that people needn't come back to it (myself included).
icio
A: 

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.

Boldewyn
thanks...........
hwd
A: 

thanks for this great help! i need it too. God bless.

Mind Boggler