jsPDF-AutoTable
jsPDF-AutoTable copied to clipboard
Allow cells to be TextFields
Would be awesome in order to get input in a table.
Sounds like a great improvement!
@simonbengtsson @puyma to further clarify, do you mean having a td or th which has an input field nested within it to "act" as its value during pdf generation ?
<tr>
<td>
<input type="text" placeholder="enter name"/>
</td>
</tr>
@simonbengtsson @iamziike It would be as if, when adding a table to the jsPDF document, the body parameter accepted TextField objects. Then, once generated the pdf, the contents of the table would be editable as text fields are.
doc.autoTable({
...
head: [
["first column", "second column"]
],
body: [
[**new TextField()**, **new TextField()**]
],
})
What?!! editable PDF fields? am I missing something here? isn't PDF just for printing?
I think I've seem those before. I did some digging and there's a spec called XFA forms that appears to do just that. It seems though it would still be a bold feat to achieve
- https://en.wikipedia.org/wiki/XFA#Usage_with_Portable_Document_Format
- https://updf.com/pdf-form/xfa/