Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

node-pdf

0.0.4 • Public • Published

node-pdf

pdf generation using mustache and xelatex

usage

npm install node-pdf
fs = require 'fs'
{render} = require 'node-pdf'
 
data =
    title: 'Matrix'
 
render './matrix.tex'data(err,rs)->
    if err
        console.log err
    else
        ws = fs.createWriteStream './output.pdf'
        rs.pipe ws

Keywords

none

install

npm i node-pdf

Downloadsweekly downloads

13

version

0.0.4

license

none

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability