a coder
a coder

Reputation: 7669

Creating checkboxes in dompdf

Is it possible to use checkbox elements (along with the checked property) when converting HTML to PDF using dompdf?

I'm using 0.6.3 beta, and some initial tests are not proving successful:

<p>Checkboxes:
<p><input type=checkbox name=on checked> ON
<p><input type=checkbox name=off> OFF

Results in:

Checkboxes:
ON
OFF

The same behavior is confirmed in dompdf 0.5.1 and 0.5.2.

I am using the checkboxes for display purposes only. Any client entered data is processed before passing data back to dompdf. The stakeholder is firm about their request for the PDF to contain checkboxes (some checked, some not depending on pre-processed user input).

Is dompdf able to handle checkboxes (and other input elements), if so how should they be coded in the source HTML?

Upvotes: 1

Views: 5490

Answers (1)

Fabien M&#233;nager
Fabien M&#233;nager

Reputation: 140185

I committed r500 today, which permits to display form elements.

You can grab it by checking out the SVN trunk.

Upvotes: 2

Related Questions