Say I have a PDF of a government form. I have a JSON of data with which I'd like to populate the PDF. What would be a good way, using Node, to merge the data into the PDF and create a new PDF?
CodePudding user response:
Looks like the form-filling tools of PDF-lib are going to do the trick.
CodePudding user response:
You can do it in this way.
You can create a route e.g /pdf/create
where you populate the form. In that form you set the submit form route to /pdf/save
now if user modified some of the fields then you get the updated value else the default one and generate pdf based on that.