pdf-generation
v1.0.0
Published
A command-line application that generates PDF files from Mustache HTML templates and JSON data using Node.js, Puppeteer, and Mustache.js.
Downloads
1
Readme
PDF Generator
This is a command-line application that generates PDF files from Mustache HTML templates and JSON data using Node.js, Puppeteer, and Mustache.js.
Usage To use the PDF generator, execute the script with the following command:
npx pdf-generation <html-template-file-path> <jsonDirectory>
<html-template-file-path>: Path to the HTML file containing the Mustache template.
<jsonDirectory>: Directory containing JSON files with the data.
The generated PDF files will be saved in the JSON directory with the same name as the source JSON file.