JSONToPDF
This is a NodeJS Server that exposes an API to convert a JSON in a given format to a PDF, by stiching together various HTML template files.
Example of input JSON is located in the folder\file
example/input1.json .
The HTML templates used in this code is located in the folder\file assets/htmlTemplates . This HTML template was constructed using the sample detailed in, https://w3collective.com/html-resume-bootstrap/
To Run the application, in a nodeJS environment do the following:
npm install
node .
Following is a Curl script to make the API Call.
curl -X POST "http://localhost:3001/generatePDF" -H "accept: application/json" -H "Content-Type: application/json" -d @example/input1.json