node-pdflatex
PDFLaTeX wrapper for Node
Install
npm install node-pdflatex
Usage
pdflatex
takes latex source and returns a Promise of Buffer.
const source = `\\documentclass{article}\\begin{document}Hello World!\\end{document}` const pdf = await
Options
shellEscape
: boolean
Adds the -shell-escape
flag during compilation.
texInputs
: Array<string>
Adds paths to TEXINPUTS
env var during compilation.
TypeScript
This package is written in TypeScript.
That means the NPM package comes with type definitions included.
License
MIT