This is a simple example of converting html string content into a pdf.
-
html-pdf : _ library used for html to pdf conversion
npm-link github-link -
mustcahe.js : _ used for generating html content from a template by providing the required data.
npm-link github-link
- templates : folder contains template examples with their data to be replaced by mustache.js in converting html string from a html template.
- htmlstringContent.txt : a test file which is generated everytime a pdf request is received by server. It contains the html string generated by mustache.js which is going to be written in a pdf file.
- test.html : a test html file for rendering the html string generated in htmlstringContent.txt file