I am building a React.js application which takes some input like name, age, email etc from the users and I need to fill these data into a Form 11 PDF and enable users to download the filled PDF. So basically a slight automation software for form 11. So far I have obtained the data from users and have stored it in variables using the useState hook. How can I fill these data onto the respective spaces in a Form 11 PDF. Welp!
CodePudding user response:
pdf-lib is an option. Its very very simple to implement.
Fill form official example: https://pdf-lib.js.org/#fill-form
Another option is pdfform.js