Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow cells to be TextFields #804

Open
puyma opened this issue May 22, 2021 · 5 comments
Open

Allow cells to be TextFields #804

puyma opened this issue May 22, 2021 · 5 comments

Comments

@puyma
Copy link

puyma commented May 22, 2021

Would be awesome in order to get input in a table.

@simonbengtsson
Copy link
Owner

Sounds like a great improvement!

@iamziike
Copy link

iamziike commented Jun 2, 2022

@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>

@puyma
Copy link
Author

puyma commented Jun 2, 2022

@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()**]
    ],
})

@mmghv
Copy link
Collaborator

mmghv commented Oct 1, 2023

What?!! editable PDF fields? am I missing something here? isn't PDF just for printing?

@lucaslm
Copy link

lucaslm commented Dec 5, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants