doc2pdf
Convert DOC to PDF.
Install
$ apt-get install unoconv -y$ npm i doc2pdf -S
Usage
const path = ;const fs = ;const doc2pdf = ; // read buffer from .docx file// sync operation is for demonstration only// use async operation in production modeconst buffer = fs; // create pdf from buffer; // create pdf from file;
License
MIT.