Skip to content

root-kings/pdf-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pdf-generator

You need to install wkhtmltopdf from https://wkhtmltopdf.org/downloads.html#stable

Usage

npm i @root-kings/pdf-generator
const generatePDF = require('@root-kings/pdf-generator')

let outputPath = await generatePDF(templateName, data)

let outputPath = await generatePDF(templateData, data)

let outputPath = await generatePDF(template, data, outputFilePath)

Examples

Please check tests/index.js.

TODO

  • Error Handling
  • Add validation

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published