An open API service indexing awesome lists of open source software.

https://github.com/zweifisch/node-pdf

pdf generation using mustache and xelatex
https://github.com/zweifisch/node-pdf

Last synced: 3 months ago
JSON representation

pdf generation using mustache and xelatex

Awesome Lists containing this project

README

        

# node-pdf

pdf generation using mustache and xelatex

## usage

```sh
npm install node-pdf
```

```coffeescript
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
```