JSPM

latex2pdf

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5
  • Score
    100M100P100Q39774F
  • License MIT

A NodeJS module to convert LaTeX to a pdf file

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 latex2pdf

Usage

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 !");
})

License

MIT