Package Exports
- latex2pdf
- latex2pdf/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (latex2pdf) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
latex2pdf
latex2pdf is a Nodejs module for converting latex files to pdf files.
Installation
npm install latex2pdfUsage
const latex2pdf = require("latex2pdf");
latex2pdf.convert("test.tex",(err)=>{
if(err) console.log(err);
console.log("Done !");
})
//Specify an output directory and filename, a timeout and whether to log debugging messages or not
latex2pdf.convert("test.tex",{output:"/dir/name.pdf",timeout:2000,debug:false},(err)=>{
if(err) console.log(err);
console.log("Done !");
})